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

Calling a batch file from a logon script

Status
Not open for further replies.

TimK01

Technical User
Jan 4, 2002
94
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.

Each user has a logon script in netlogon to do user specific stuff but instead of always updating all logon scripts I wanted to add a call to a general Batch file or vbscript from every logon script to hold the code general to everyone.

I can make it work on network drives and locally but put it into netlogon and it wont go. The call returns "Bad Command or file name".

I Have tried quallifying the call with exact path names, both scripts are in the same Folder.

Does anyone have any ideas?

Thx

Tim
 
If you are trying to call another batch file with the call command from a login script you will need to call it from a network share, as the file won't exist on each pc.

Try "call \\computer\share\batchfile.bat" in the login script and see if that works.

Let me know how that works out for you.
 
Thanks for the sugestion but it didnt work

I have tried specific path names %0/..

They all work with other share names but not with Netlogon

so Im stumped
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top