Search found 2 matches

by dringkoy
02 Jan 2014 10:12
Forum: DOS Batch Forum
Topic: FOR /F Explaination
Replies: 5
Views: 6168

Re: FOR /F Explaination

Thanks ShadowThief for the detailed explanation. I'm a System Admin who know nothing about batch scripts :(. I am looking for a script that I will include in my backup task using robocopy that will append the mm/dd/year on its log file. and it looks like the above line solved my problem. :)
by dringkoy
01 Jan 2014 21:12
Forum: DOS Batch Forum
Topic: FOR /F Explaination
Replies: 5
Views: 6168

FOR /F Explaination

FOR /F "tokens=2,3,4,5,6 delims=/: " %%i in ("%date% %Time%") do @set d=%%k%%i

I have no experience with batch scripts, can someone please explain the above FOR /F line.

Thank you