Logon Script - Launched from BATCH file. 
Author Message
 Logon Script - Launched from BATCH file.

I have a logon script, thanks to everyone's help who helped out, that now
successfully launches a modal window (with no surrounding frame) and it works on
all of the required machines (I believe).  But I am stuck once again :(

When I run the batch file, all is well, but the batch file stays open until the
VBScript is done executing and the user clicks on the CLOSE button I have added
to the script.  Now, how can I either minimize this cmd prompt or get rid of it
altogether immediately after it starts the script?

Thanks again!

Mythran



Fri, 04 Mar 2005 23:30:44 GMT  
 Logon Script - Launched from BATCH file.
launch it from the script with the "start" command.

start myscript.vbs

That should let your batch file go on its merry way.

--
Please respond in the newsgroup so everyone may benefit.
 http://dev.remotenetworktechnology.com
 ----------
 Subscribe to Microsoft's Security Bulletins:
 http://www.microsoft.com/technet/security/bulletin/notify.asp


Quote:
> I have a logon script, thanks to everyone's help who helped out, that
now
> successfully launches a modal window (with no surrounding frame) and
it works on
> all of the required machines (I believe).  But I am stuck once again
:(

> When I run the batch file, all is well, but the batch file stays open
until the
> vbscript is done executing and the user clicks on the CLOSE button I
have added
> to the script.  Now, how can I either minimize this cmd prompt or get
rid of it
> altogether immediately after it starts the script?

> Thanks again!

> Mythran



Sat, 05 Mar 2005 00:32:26 GMT  
 Logon Script - Launched from BATCH file.



Quote:
> launch it from the script with the "start" command.

> start myscript.vbs

> That should let your batch file go on its merry way.

Thanks Alex...it worked...but now, it continues on it's merry way and still
continues after the desktop loads....oh well...if there is a way around
this...let me know :)

Mythran



Sat, 05 Mar 2005 04:09:39 GMT  
 Logon Script - Launched from BATCH file.
You mean the batch file window never closes?  Are you using this as the
network logon script for the users?

--
Please respond in the newsgroup so everyone may benefit.
 http://dev.remotenetworktechnology.com
 ----------
 Subscribe to Microsoft's Security Bulletins:
 http://www.microsoft.com/technet/security/bulletin/notify.asp


Quote:



> > launch it from the script with the "start" command.

> > start myscript.vbs

> > That should let your batch file go on its merry way.

> Thanks Alex...it worked...but now, it continues on it's merry way and
still
> continues after the desktop loads....oh well...if there is a way
around
> this...let me know :)

> Mythran



Sat, 05 Mar 2005 04:41:05 GMT  
 Logon Script - Launched from BATCH file.



Quote:
> You mean the batch file window never closes?  Are you using this as the
> network logon script for the users?

> --

The batch file window closes, but the script launches an instance of Internet
Explorer.  This window should pause the system from continuing to load windows
until it is closes (either programatically or F4).  Is it possible?  Remember,
this script is launched from the batch file using the START command.

Thanks again,
Mythran



Sat, 05 Mar 2005 04:52:13 GMT  
 Logon Script - Launched from BATCH file.
Ah - no, not since it is launched asynchronously.  It would be doable on
Win2K clients, but... <g>

Here's a weird workaround idea.

(1) Switch back to NOT using START.

(2) As the VBScript runs, make its first step be to instantiate the
AutoItX control.  You can then tell it to hide the batch file window.

(3) While the base logon script is executing, everything else will
normally be kept from showing up; when it finishes, the batch file
closes, and the explorer shell should pop up.

--
Please respond in the newsgroup so everyone may benefit.
 http://dev.remotenetworktechnology.com
 ----------
 Subscribe to Microsoft's Security Bulletins:
 http://www.microsoft.com/technet/security/bulletin/notify.asp


Quote:



> > You mean the batch file window never closes?  Are you using this as
the
> > network logon script for the users?

> > --

> The batch file window closes, but the script launches an instance of
Internet
> Explorer.  This window should pause the system from continuing to load
windows
> until it is closes (either programatically or F4).  Is it possible?
Remember,
> this script is launched from the batch file using the START command.

> Thanks again,
> Mythran



Sat, 05 Mar 2005 05:22:13 GMT  
 Logon Script - Launched from BATCH file.
"...a modal window (with no surrounding frame)..."

Side note:  If you are using an IE automation object set to fullscreen and then resized to something smaller, there have been posts that claim that IE6 sp1 removes the ability to do that...  I haven't install sp1 yet, so I can't confirm or deny the claim...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Sat, 05 Mar 2005 10:22:41 GMT  
 Logon Script - Launched from BATCH file.
Ok, everything is working ok now, but when I run it on a Windows 98 platform, the
MSDos Window does not close.  It stays up saying "Finished."  Could I be able to
close it using WSH?

Thanks,
Mythran



Sun, 06 Mar 2005 04:07:03 GMT  
 Logon Script - Launched from BATCH file.
The batch file has a line that echoes "finished" it sounds like?

Make sure that the VERY last line of the batch file is CLS - no return
after that.  In Win9x, a console window will go away when it has nothing
left to display.


Mythran typed:

Quote:
> Ok, everything is working ok now, but when I run it on a Windows 98
> platform, the MSDos Window does not close.  It stays up saying
> "Finished."  Could I be able to close it using WSH?

> Thanks,
> Mythran

--
Please respond in the newsgroup so everyone may benefit.
 http://dev.remotenetworktechnology.com
 ----------
 Subscribe to Microsoft's Security Bulletins:
 http://www.microsoft.com/technet/security/bulletin/notify.asp


Sun, 06 Mar 2005 05:15:42 GMT  
 Logon Script - Launched from BATCH file.

Quote:

> I have a logon script, thanks to everyone's help who helped out, that now
> successfully launches a modal window (with no surrounding frame) and it works on
> all of the required machines (I believe).  But I am stuck once again :(

> When I run the batch file, all is well, but the batch file stays open until the
> vbscript is done executing and the user clicks on the CLOSE button I have added
> to the script.  Now, how can I either minimize this cmd prompt or get rid of it
> altogether immediately after it starts the script?

What OS?

--
torgeir



Sat, 05 Mar 2005 00:24:24 GMT  
 Logon Script - Launched from BATCH file.

Quote:

> "...a modal window (with no surrounding frame)..."

> Side note:  If you are using an IE automation object set to fullscreen and then resized to something smaller, there have been posts that claim that IE6 sp1 removes the ability to do that...  I haven't install sp1 yet, so I can't confirm or deny the claim...

Hi

I have tested this now. The claim is correct. Our AD login screen (IE based) is now running in fullscreen when I upgrade IE to IE 6 SP1 :(

--
torgeir



Sat, 05 Mar 2005 19:14:55 GMT  
 Logon Script - Launched from BATCH file.
Microsoft Windows xxxxxxx

All MSWin OS's from 95 and up.

Mythran



Sun, 06 Mar 2005 23:10:40 GMT  
 Logon Script - Launched from BATCH file.



"...a modal window (with no surrounding frame)..."

Side note:  If you are using an IE automation object set to fullscreen and then
resized to something smaller, there have been posts that claim that IE6 sp1
removes the ability to do that...  I haven't install sp1 yet, so I can't confirm
or deny the claim...

Tested and proven, IE 6 on XP fully patched prevents this from
happening....thought it was supposed to be backwards compatible?

Mythran



Sun, 06 Mar 2005 23:11:28 GMT  
 
 [ 13 post ] 

 Relevant Pages 

1. Running VBS Script Via Logon Batch File

2. Logon Batch to call a VBS that calls another batch

3. Passing arguments to a batch file launched from a VBscript

4. Direct logon script (no batch call)

5. Converting A Logon Batch to a .VBS script

6. VBScript Logon Script kills launched process!!!

7. wscript cant find .vbs file from NT logon batch

8. wscript cant find .vbs file from NT logon batch

9. Launching a batch file from a module?

10. Launching a batch file programetically

11. launching a batch file from VB6 app

12. logon.exe script.vbs in profile (logon script)

 

 
Powered by phpBB® Forum Software