Search found 2 matches

by thousandsword
31 Aug 2024 20:48
Forum: DOS Batch Forum
Topic: echo a for into a file?
Replies: 3
Views: 21220

Re: echo a for into a file?

Thank you very much to both of you guys for taking the time to answer my question.

I will try both of your solutions and see what which of your solutions I will end up implementing in my code.


Greets,
thousandswords
by thousandsword
06 Jul 2024 20:31
Forum: DOS Batch Forum
Topic: echo a for into a file?
Replies: 3
Views: 21220

echo a for into a file?

Hello, This is my first post in here, the question I have is if there is a possible way to echo a for into a file. What I am trying to do is write a whole for loop into a new file to call it sometime later. The code kinda looks like this: ( echo for /f "usebackq tokens=* delims=:" %%a in (`dir C:\my...