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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running .bat file within login script

Status
Not open for further replies.

dogday

MIS
Joined
Mar 29, 2001
Messages
9
Location
US
Hi,
I have a basic logon script with mappings and time set.
Within this logon script I am using the start command to launce another .bat script to update my antivius programs on the workstations.
Everything works except when the bat file ends it does not close the dos window.
How can I tell it to return to basic script and close dos window?
Thanks for any help
 
I found the answer. Instead of using the start command to launch the .bat file I used command /c \\server\.bat
 
OK I just thought I had solved the problem. The next machine I setup left the dos window open again after running the script.
I went to my msdos.pif and checked close window on exit but that didn't seem to help either. Is there a setting in the registry somewhere to set this?
 
In your logon script you can run virus.bat or whatever which should start the bat file - you should put the virus.bat file in the same dir as the logon script.
 
Have you tried putting the EXIT command at the end of the batch file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top