- Mar 22, 2013
- 9,146
- 10,489
So I use a BAT file to run programs, it works great. But now I'm trying to start a BAT file with a BAT file, and I get errors:
This is the code I'm trying to run:
When I run it, I get this:
C:\Users\user\Desktop>call checkdeps.bat
'checkdeps.bat' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\user\Desktop>node.exe bla.js myfile
'node.exe' is not recognized as an internal or external command,
operable program or batch file.
I can run the "myfile.bat" just fine when I double click on it.
How can I do this? Thanks
This is the code I'm trying to run:
Code:
@ECHO off
Timeout /T 3
start C:\"Users"\"user"\"Desktop"\"Tools"\myfile.bat
Timeout /T 5
When I run it, I get this:
C:\Users\user\Desktop>call checkdeps.bat
'checkdeps.bat' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\user\Desktop>node.exe bla.js myfile
'node.exe' is not recognized as an internal or external command,
operable program or batch file.
I can run the "myfile.bat" just fine when I double click on it.
How can I do this? Thanks