About For file
Moderator: DosItHelp
About For file
I was just wondering, we can do
for /f %%! in (file) do
for /f "useback tokens=*" %%! in (
'type file'
) do
But we can't do
for /f %%! in ( "C:\windows\win ooooows" ) do
for does not allow a file between quotes, is there a solution
for /f %%! in (file) do
for /f "useback tokens=*" %%! in (
'type file'
) do
But we can't do
for /f %%! in ( "C:\windows\win ooooows" ) do
for does not allow a file between quotes, is there a solution
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: About For file
You can't do that batch for doesn't know how to process files, they are bad mojo they don't work.
For sees a file and says forget that I don't want to. Quotes who knows what the hell those are for you bastard.
Stop talking to yourself it makes you look crazy.
For sees a file and says forget that I don't want to. Quotes who knows what the hell those are for you bastard.
Stop talking to yourself it makes you look crazy.
Re: About For file
Stop talking to yourself it makes you look crazy.
It was ment as a question
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: About For file
Why do you ask questions to which you already know the answers to?
Re: About For file
i don't
I really wish i could do this with for
for /f %%! in ( File Name.ext ) do
but it does File &Name.ext instead of just looking for 'File Name.ext'
I really wish i could do this with for
for /f %%! in ( File Name.ext ) do
but it does File &Name.ext instead of just looking for 'File Name.ext'
Re: About For file
Why do you ask questions to which you already know the answers to?
Look who's talking
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: About For file
I don't anything about batch
Why we can't
for /f %%! in ( "C:\windows\win ooooows" ) do
but we can for /f "useback tokens=*" %%! in ("c:\windows\blow up this box\billy madison.txt")
Someone will surely have the right answer.
It makes no sense to me either.
Why we can't
for /f %%! in ( "C:\windows\win ooooows" ) do
but we can for /f "useback tokens=*" %%! in ("c:\windows\blow up this box\billy madison.txt")
Someone will surely have the right answer.
It makes no sense to me either.
Re: About For file
IT WORKS !!!
for /f "useback tokens=*" %%! in ( "TST.TXT" ) do echo.%%!
I knew it, I forgot it, now I remember thanx to u.
That's not what the help says though
for /f "useback tokens=*" %%! in ( "TST.TXT" ) do echo.%%!
I knew it, I forgot it, now I remember thanx to u.
That's not what the help says though
Code: Select all
FOR /F ["opties"] %variable IN (bestandsset) DO opdracht [opdrachtparameters]
FOR /F ["opties"] %variable IN ('tekenreeks') DO opdracht [opdrachtparam.]
FOR /F ["opties"] %variable IN (`opdracht`) DO opdracht [opdrachtparameters]
-
- Posts: 287
- Joined: 16 Mar 2011 19:17
- Location: scriptingpros.com
- Contact:
Re: About For file
Clever had to fix something someone broke.
The help is right the program is wrong
All fixed now.
The help is right the program is wrong
All fixed now.
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: About For file
Blah blah blah guys. lol Yes,
Code: Select all
for /f "usebackq" %%x in ("my file path") do ...