Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i need some help with my echo >> output
i need to output this line and save it as another batch fileECHO for /f "tokens=2 delims=," %%a in (1.csv) do >> 2.csv echo %%a
but i cannot do this
ECHO for /f "tokens=2 delims=," %%a in (1.csv) do >> 2.csv echo %%a >> batchfile.bat
as it will recognize the first set of >> as output

^ escapes most characters, You will also need to double all %'s.
If inside a code block you may also need to escape the
brackets.It is also good practice to redirect before the command to
avoid trailing spaces or conflict with destination redirection
(ie 2>nul to discard stderr).>> batchfile.bat ECHO for /f "tokens=2 delims=," %%%%a in (1.csv) do ^>^> 2.csv echo %%%%a

![]() |
Batch to insert column fr...
|
what is clipboard in c la...
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |