Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login Script Help 1

Status
Not open for further replies.

tmattson

IS-IT--Management
Jul 3, 2001
125
US
I am currently mapping a windows share via the login script with a batch file using the external call, however the dos box shows and stays there for alomst 10 seconds while the NET USE command get executed.

I was wondering if there might be a more elegant solution to execute a local workstation command than through a batch file or if ther is a way I can hide the dos box while the command is executing? I am using echo off (in batch file) so the user doesn't see the actual command.

Thanks
 
run it as a vbs script

or do you have zen - if so run it as a nal app that calls either a batch or a vbs script - then you can hide it easily

 
Excellent! This worked great. Thanks for the suggestion.
 
Well I guess I spoke to soon. If I run the VBS script directly from the login script I get the 'could not execute external program' error message, however if I run the VBS script via a batch file it runs fine. It does show the command (dos) box momentarily which is much better than it was...but I'm just curious why the VBS script doesn't run. The VBS script does run fine if I just run after loggin in.

Any ideas?
 
how are you executing it and what is the script

there used to be a invisible.vbs lurking about that hide the dos call

will have a peak see if i can find it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top