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

Logon Script calling another batch or VBS file

Status
Not open for further replies.

TimK01

Technical User
Jan 4, 2002
94
We are using NT4 and have logon scripts for each user working fine.

I want to add some general functionality to every log on script so I put it in a batch file general.bat, which I stored in netlogon, then added a "call general.bat" to every logon script batch file.

All i get is Bad command or filename

I tried %0\..\general.bat

I also tried using a .vbs file in the same way all failed.

Should I be able to do this or is there some restriction on calling a batch or vbs file from a batch file in netlogon?
 
I'm not sure if the following will work with a network path however you could map the drive run the bat and then kill the mapping.

filebat = "c:\hold\general.bat"
wscript.run filebat

 
Thanks for your answers, Neither of them work in the environment I have.

Basicly I can call a batch file or VB script from another batch file in my local machine, in a network drive, but not in Netlogon.

Anyone have any ideas why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top