
My problem is: I do not understand ANYTHING of the "FOR" command, is it possible for you to explain me how that "function" works? I see it's very usefull xD
Moderator: DosItHelp
Code: Select all
FOR %a IN (%USERPROFILE%\desktop %USERPROFILE%\documents) DO echo start %CD% >> %a\filename.txt
Code: Select all
FOR /f "delims=, tokens=1-3" %a IN ("greetings %yourname%,., Please type your something") DO echo %a&&echo%b&&echo%c