Thanks jeb and Dave Benham for yours explanations.
Actually I just try to make a "batch scripts debugger", but It's looks like impossible (for the moment) to execute commands from an external file step by step (pause betweed two lines)
Search found 5 matches
- 16 Aug 2011 16:35
- Forum: DOS Batch Forum
- Topic: Reads commands from an external file
- Replies: 9
- Views: 8167
- 16 Aug 2011 15:03
- Forum: DOS Batch Forum
- Topic: Reads commands from an external file
- Replies: 9
- Views: 8167
Re: Reads commands from an external file
Here is an example of test code: @echo off if "%USERNAME%"=="aaa" echo Ok for /L %%i in (0,1,3) do echo Line%%i ping google.com -n 2 set alpha=Test echo %alpha% pause Output: >>> Debug:> Lines= 7 '@echo' is not recognized as an internal or external command, operable program or ba...
- 16 Aug 2011 14:39
- Forum: DOS Batch Forum
- Topic: Reads commands from an external file
- Replies: 9
- Views: 8167
Re: Reads commands from an external file
("If" conditions doesn't work too, and I've not tried all commands.)
- 16 Aug 2011 14:36
- Forum: DOS Batch Forum
- Topic: Reads commands from an external file
- Replies: 9
- Views: 8167
Re: Reads commands from an external file
Thanks for the reply.
I've did it but my script wont work if 'example_cmd_file.bat' contains a for loop, therefore I'm asking for some help...
I've did it but my script wont work if 'example_cmd_file.bat' contains a for loop, therefore I'm asking for some help...
- 16 Aug 2011 13:31
- Forum: DOS Batch Forum
- Topic: Reads commands from an external file
- Replies: 9
- Views: 8167
Reads commands from an external file
Hi guy's, I work an a project and I have some problems to load commands from a file (drag/drop) like that: example_cmd_file.bat @echo off start calc.exe pause my_script_to_read_the_file.bat @echo off setlocal enabledelayedexpansion set linz=0 & for /F "tokens=* delims=" %%b in ('type %...