By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!> Why doesn't this work?
>
> v:\> 1>file (for /L %i in (0,1,2) do echo %i)
> Usage : FOR [/A:[[-][+] ...
>
> It works in CMD.EXE and with other TCC commands.
>vefatica wrote:
>
>
>---Quote---
>> Why doesn't this work?
>>
>> v:\> 1>file (for /L %i in (0,1,2) do echo %i)
>> Usage : FOR [/A:[[-][+] ...
>>
>> It works in CMD.EXE and with other TCC commands.
>---End Quote---
>Your redirection syntax is meaningless - what are you actually trying to do?
> >> Why doesn't this work?
> >>
> >> v:\> 1>file (for /L %i in (0,1,2) do echo %i)
> >> Usage : FOR [/A:[[-][+] ...
> >>
> >> It works in CMD.EXE and with other TCC commands.
> >---End Quote---
> >Your redirection syntax is meaningless - what are you actually trying
> to do?
>
> How is it meaningless? It works (TCC):
>
> v:\> 1>file (date /t)
>
> v:\> type file
> Wed 2008-06-04
do?>vefatica wrote:
>
>
>---Quote---
>> Why doesn't this work?
>>
>> v:\> 1>file (for /L %i in (0,1,2) do echo %i)
>> Usage : FOR [/A:[[-][+] ...
>>
>> It works in CMD.EXE and with other TCC commands.
>---End Quote---
>Your redirection syntax is meaningless - what are you actually trying to
>Boy, talk about cryptic syntax! Do you have a need for that syntax? Why
>can't you use the more readable:
>
>(for /L %i in (0,1,2) do echo %i)>file