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

cant open file "bad command or file name"

Status
Not open for further replies.

AntunB

IS-IT--Management
Joined
Aug 11, 2003
Messages
263
Location
AU
ok i got a batch file that runs and then calls a vbs file



[test1.bat]
@echo off
echo Logon script
call \\server\test\test.vbs
pause

[test.vbs]
msgbox "wow it works"


and the message i get is "bad command or file name



BUT wen i try and open a .bat file on the server it works

[test1.bat]
@echo off
echo Logon script
call \\server\test\test2.bat
pause

[test2.bat]
msgbox "works with bat files"



wat is going on???
 
ok it doesnt work on win 95 for some reason....



so does any one know how i would get it to work on win 95?

on the other OS it works fine
 
Hello AntunB,

Win95 does not have windows script host installed by default. You can download the version for win95/98 from MS's site and install it on the m/c.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top