Cannot step into and/or call another .bat file when debugging .bat file

Aug 20, 2021
2
0
I'm debugging a .bat file and there is a line like the following:

Code:
call scripts\some_other_script.bat

But, when I try to step into that script (F11 key) there is a message in the cmd window that says

TCC: ...\path\to\bat\file.batch_file.bat [line number] Unknown command "scrip[ts\some_other_script.bat"

How do I step into another batch file? Even if I don't try to step into the batch file it still fails as above.
 

rconn

Administrator
Staff member
May 14, 2008
12,425
153
I don't think this has anything to do with stepping, I think the problem is that your partial pathname can't be found from the debugger's default directory.

Try either providing the complete pathname, or put a CD / CDD in the batch file to change to the desired directory.
 
  • Like
Reactions: jdanielp
Aug 20, 2021
2
0
I used %~dp0 plus the relative path to give it a full path and that allowed me to step into the script. Thanks!
 

Similar threads