User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Windows NT / 2000 / XP / 2003 section within the Tech Talk category of DaniWeb, a massive community of 402,444 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,952 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Windows NT / 2000 / XP / 2003 advertiser: Programming Forums
Views: 5159 | Replies: 3
Reply
Join Date: Jan 2006
Posts: 2
Reputation: technoGeek is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
technoGeek technoGeek is offline Offline
Newbie Poster

Help running a .bat file in xp sp2

  #1  
Jan 23rd, 2006
Hi,
When my users login they run a bat file called login.bat. The batch file then calls three other files using the following commands.

%0\..\wscript.exe %0\..\shortcut.js
%0\..\wscript.exe %0\..\i5shortcut.js
%0\..\wscript.exe %0\..\i5settingswim.vbs

%0\..\Kix32.exe groups.scr


When this is run from a W2k machine the script runs fine without any problems. However, when the script is run an XP SP2 machine (with the Firewall switched off) I get an error message that reads

"Script error: failed to find/open script!

Does anyone know why this is happening. I'm assuming the above commands are not recognised by XP. The files its calling are are sitting in the netlogon direcoty of an NT server with SP6a.

Many thanks for any assistance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Warwick, England
Posts: 666
Reputation: MartyMcFly is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 17
MartyMcFly MartyMcFly is offline Offline
Practically a Master Poster

Re: running a .bat file in xp sp2

  #2  
Jan 24th, 2006
Reply With Quote  
Join Date: Sep 2003
Posts: 103
Reputation: rasputinj is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 3
rasputinj rasputinj is offline Offline
Junior Poster

Re: running a .bat file in xp sp2

  #3  
Jan 24th, 2006
Originally Posted by MartyMcFly
This help?

http://support.microsoft.com/?kbid=318689

Good to know I have not used %0 in years good to know I don't need to.
Reply With Quote  
Join Date: Jan 2006
Posts: 2
Reputation: technoGeek is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
technoGeek technoGeek is offline Offline
Newbie Poster

Re: running a .bat file in xp sp2

  #4  
Jan 24th, 2006
Thats great. Works fine. Many thanks for your help.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Windows NT / 2000 / XP / 2003 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Windows NT / 2000 / XP / 2003 Forum

All times are GMT -4. The time now is 2:51 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC