Hello,
I have a batch file which opens several programs. I'm having trouble with one of the prgrams not loading.
Here is the target path:
@echo off
C:\a\b\c.exe -run NT_NA WIN_32
If I go to \b directory I can't run c.exe without the "-run NT_NA WIN_32"
which seems to be causing a problem with the script. Any advice?
Batch file won't open specific file path
Moderator: DosItHelp
Re: Batch file won't open specific file path
Are there spaces in the path?
Try using the CALL command.
Regards
aGerman
Try using the CALL command.
Code: Select all
call "C:\a\b\c.exe" -run NT_NA WIN_32
Regards
aGerman
Re: Batch file won't open specific file path
That doesn't seem to work either. Yes there are spaces in the path.
Re: Batch file won't open specific file path
But you're certain that the arguments -run NT_NA WIN_32 are right?
Re: Batch file won't open specific file path
Yes. And if I go that directory in a command prompt and type c.exe -run NT_NA WIN_32 it will open the program. If I only enter c.exe it will not enter.
Re: Batch file won't open specific file path
Hmm, then you could change the working directory and see what happens.
Regards
aGerman
Code: Select all
cd /d "C:\a\b"
call c.exe -run NT_NA WIN_32
Regards
aGerman
Re: Batch file won't open specific file path
That did it. Thanks alot!