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

#### jdanielp

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

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.

jdanielp

#### jdanielp

I used %~dp0 plus the relative path to give it a full path and that allowed me to step into the script. Thanks!

Replies
7
Views
234
Replies
2
Views
278
Replies
2
Views
614
Replies
2
Views
629
Replies
5
Views
829
Replies
7
Views
994
Replies
6
Views
5K
Replies
5
Views
1K
Replies
7
Views
2K
Replies
2
Views
1K
Replies
15
Views
4K
Replies
5
Views
1K
Replies
2
Views
1K
Replies
3
Views
1K
Replies
15
Views
4K
Replies
12
Views
2K
D
Replies
1
Views
1K
Replies
8
Views
1K
Replies
30
Views
6K
Replies
0
Views
1K
Replies
11
Views
2K
Replies
15
Views
3K
Replies
19
Views
4K
Replies
16
Views
5K
Replies
4
Views
2K
Replies
4
Views
3K
Replies
7
Views
3K
Replies
8
Views
4K
Replies
4
Views
4K
Replies
0
Views
2K
Replies
10
Views
513
Replies
5
Views
194
Replies
3
Views
222
Replies
24
Views
1K
Replies
9
Views
1K
Replies
9
Views
3K
Replies
0
Views
833
Replies
13
Views
2K
Replies
0
Views
1K
Replies
9
Views
2K
Replies
3
Views
2K
Replies
4
Views
1K
Replies
4
Views
2K
Replies
4
Views
7K
Replies
59
Views
9K
Replies
35
Views
9K
Replies
7
Views
5K