Search found 5 matches
- 13 Dec 2011 14:43
- Forum: DOS Batch Forum
- Topic: Append command line output dynamically
- Replies: 3
- Views: 5572
Re: Append command line output dynamically
Thanks, just what I was looking for. I had problems finding this issue referenced before (what do you search for?) as well... but I apologize for the apparent repeat.
- 13 Dec 2011 09:10
- Forum: DOS Batch Forum
- Topic: Append command line output dynamically
- Replies: 3
- Views: 5572
Append command line output dynamically
Sorry for the surreal subject, but I wasn't sure how to describe this in a one liner. What I'd like to be able to do is basically avoid generating a newline in my output, something like this: echo "Processing xyz..." [script does some stuff] Then actually append something like an "ok&...
- 12 Dec 2011 16:00
- Forum: DOS Batch Forum
- Topic: Code will not iterate through file
- Replies: 2
- Views: 3309
Re: Code will not iterate through file
Thanks very much Dave. I guess I was headed in the right direction since I had the setlocal enableDelayedExpansion in place, but it was all for naught since I was still using the %'s. Thanks again!
- 12 Dec 2011 15:20
- Forum: DOS Batch Forum
- Topic: Code will not iterate through file
- Replies: 2
- Views: 3309
Code will not iterate through file
I have a script designed to read a text file and make parameters of the elements of each line, then act on them. However, it just returns info for the last line for as many times as there are lines in the input file. Here's the code: @Echo Off setlocal EnableDelayedExpansion Set _InputFile=master.tx...
- 28 Oct 2011 15:11
- Forum: DOS Batch Forum
- Topic: "Unexpected Do"
- Replies: 2
- Views: 4013
"Unexpected Do"
The following, from within a batch script: echo for %%A in ("DM.txt") do if %%~zA equ 0 del DM.txt >> exec-ds.bat Generates: "do was unexpected at this time" However if I run it manually, no error is generated and exec-ds.bat executes as expected. Any suggestions? Thanks, Al