Hi!
I think I found the issue: simply too many switches. I removed the /R and all is right in the world!
for /d %%X in (C:\Windows\Temp\LOGDIRECTORY-*) do type %%X\LOGNAME* >> \\share\path\BATCHLOG.log 2>&1
Thanks to anyone who read.
Search found 7 matches
- 06 Aug 2015 09:01
- Forum: DOS Batch Forum
- Topic: FOR loop to redirect 'type' output of multiple subfolders
- Replies: 1
- Views: 2234
- 06 Aug 2015 08:28
- Forum: DOS Batch Forum
- Topic: FOR loop to redirect 'type' output of multiple subfolders
- Replies: 1
- Views: 2234
FOR loop to redirect 'type' output of multiple subfolders
Hi! I've never been great at getting my own FOR loops work, so I'm here for help! Here's my goal: Use a batch file to redirect the contents of a log file into a new log file that the batch has created. e.g.: type logfile.log >> batchlog.log Here's why it's difficult: the current running directory is...
- 16 Oct 2010 06:49
- Forum: DOS Batch Forum
- Topic: Remove prompt from output
- Replies: 4
- Views: 4964
Re: Remove prompt from output
Got it! Thanks so much!
- 15 Oct 2010 06:31
- Forum: DOS Batch Forum
- Topic: Remove prompt from output
- Replies: 2
- Views: 4225
Re: Remove prompt from output
Thanks! I knew it was possible, just couldn't recall!
Blessings!
Blessings!
- 14 Oct 2010 11:06
- Forum: DOS Batch Forum
- Topic: Remove prompt from output
- Replies: 4
- Views: 4964
Re: Remove prompt from output
I'm sorry for the confusion. by 'prompt' I'm referring to 'C:\>' that prints at the beginning of each line. Is there another name for this piece of the command window?
- 14 Oct 2010 10:32
- Forum: DOS Batch Forum
- Topic: Remove prompt from output
- Replies: 2
- Views: 4225
Remove prompt from output
When echo is on I'd like to have the command displayed without the C:\> (or other drive) prompt. For example, a batch file with a single command: ren test test01 ...will output... C:\>ren test test01 ...when run. I'd much rather not see the prompt C:\> before the command. For me... ren test test01 ....
- 14 Oct 2010 10:32
- Forum: DOS Batch Forum
- Topic: Remove prompt from output
- Replies: 4
- Views: 4964
Remove prompt from output
When echo is on I'd like to have the command displayed without the C:\> (or other drive) prompt. For example, a batch file with a single command: ren test test01 ...will output... C:\>ren test test01 ...when run. I'd much rather not see the prompt C:\> before the command. For me... ren test test01 ....