T
thinktwice
here me again , sorry have so many questions, i'm a totally newbie
on cmdprompt.
i know i could redirect the output in this way:
mycommand 2>&1
mycommand 1>log.txt 2>&1
.... (sure i know this from this forum )
here is my case
for /F %%i in ('mycommand') do somecommand
i want to redirect the output of mycommand, i have tried
for /F %%i in ('mycommand 2>&1') do somecommand <--------this isn't a
valid command
for /F %%i in ('mycommand') do somecommand 2>&1 <--------seems
redirect the output of "for" command?
on cmdprompt.
i know i could redirect the output in this way:
mycommand 2>&1
mycommand 1>log.txt 2>&1
.... (sure i know this from this forum )
here is my case
for /F %%i in ('mycommand') do somecommand
i want to redirect the output of mycommand, i have tried
for /F %%i in ('mycommand 2>&1') do somecommand <--------this isn't a
valid command
for /F %%i in ('mycommand') do somecommand 2>&1 <--------seems
redirect the output of "for" command?