1.

Solve : How to add some text to all txts in directory??

Answer»

How to add some text to all txts in directory?

ECHO blahblah>>*.txt doesn't work.for /f "delims=="" %%A in ('dir /b *.txt') do echo BLAH blah blah >> %%A

It doesn't work. I have WinXP.are you doing it in a BATCH file or from the prompt?

in a batch

for /f "delims=="" %%A in ('dir /b *.txt') do echo blah blah blah >> %%A

at the prompt

for /f "delims=="" %A in ('dir /b *.txt') do echo blah blah blah >> %A




Both doesn't work, in console and as a batch file.Quote

for /f "delims=="" %%A in ('dir /b *.txt') do echo blah blah blah >> %%A
I think 'double "' is the problem..
--- for /f "delims=="" ---
---------------------------------------------------------------------------------------------
for /f "delims==" %%A in ('dir /b *.txt') do echo blah blah blah >> %%A


Discussion

No Comment Found