Search found 3 matches
- 02 Jun 2019 16:53
- Forum: DOS Batch Forum
- Topic: Batch file runs differently when executed line by line
- Replies: 6
- Views: 7269
Re: Batch file runs differently when executed line by line
I was falsely reassured that multiple statements entered from the command line would work as a batch file when I was prompted with "More?" while typing the body of the "for /f" statement. I was only looking for a way to do a hex dump of any file (XP thru Win10) without having my process write a batc...
- 02 Jun 2019 14:49
- Forum: DOS Batch Forum
- Topic: Batch file runs differently when executed line by line
- Replies: 6
- Views: 7269
Re: Batch file runs differently when executed line by line
I always thought that batch files ran the same way whether typed in line-by-line or from a batch file.
Thank you for confirming this is not always true.
Thank you for confirming this is not always true.
- 31 May 2019 11:18
- Forum: DOS Batch Forum
- Topic: Batch file runs differently when executed line by line
- Replies: 6
- Views: 7269
Batch file runs differently when executed line by line
Can someone please tell me why the following code runs differently when executed as a batch file vs line by line (or pasted in a "Command Prompt" window) The code simply outputs a hex dump of the file specified on the second line. The only difference between the two code blocks is that '%%' has been...