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,365
150
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
Thread starter Title Forum Replies Date
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
samintz WAD Cannot unset .py[co] Support 2
Peter Murschall TEE cannot handle Unicode output Support 2
L Cannot get DEBUGMONITOR to work Support 5
Jay Sage Cannot Postion Cursor in Command Line Using Mouse Support 7
Joe Caverly A new guard page for the stack cannot be created Support 6
O I cannot use links to .btm files Support 5
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
N Cannot install Support 2
Patulus TCHistoryLog: TCC: (Sys) The system cannot find the path specified Support 15
thorntonpg F1 on command line The webpage cannot be found Support 5
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
gschizas Fixed Cannot use extended path to delete invalid file Support 3
S WAD Cannot access mapped drive in 64b Win7 Support 15
S WAD Messages cannot be seen or accessed in Forum Support 12
D cannot get into ftp://jpsoft.com/oldver Support 1
T signaling firstcondition and cannot change colors Support 8
L File association: System cannot find the associated program Support 30
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
L Thanks from larryalk was Cannot apply Start in folder for Tcmd Support 11
L Cannot apply Start In folder for Tcmd Support 15
C Cannot register v12.10 without Internet access Support 19
BobK Error from START cmd, "cannot find the file" Support 16
newbie Cannot make a btm/tcc.exe window wider Support 4
P Cannot download any of Vince Fatica's plugins Support 4
Roedy Cannot have both v10 and v11 Support 7
A Cannot permanently remove Tabs toolbar using View menu - bug? Support 8
M TCC cannot find the path specified Support 4
mscheuner TCMD 8 - cannot register on Vista x64 Support 0
EDerH Powershell call from script Support 24
S Debugger Bat file call history Support 9
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
M Call History popup-window? Support 0
nickles Call a complex function Support 13
rconn News Take Command v19 Call for Features Support 0
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
Vasilich How to? debugging files that use CALL command - possible?? Support 3
noahcoad Option to always CALL? Support 4
M @ExecStr vs. Call Support 4
O CALL SYSTEM from Fortran Support 4
rconn Last call for v12 feature requests Support 59
rconn Call for v11 feature requests Support 35
p.f.moore Running another batch file without CALL Support 7

Similar threads