Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
I am trying to append the create date to a txt file as ddmmyyhhmmss. But instead I get mmddyyyyhhmm. Can someone please help me with the format. thanks
this is what I have so far: Echo off for %%I in (test.txt) do ( for /F "tokens=1-6 delims=/-: " %%A in ("%%~tI") do ( set CRDATE=%%A%%B%%C%%D%%E set CRTIME= ) ) ren test.txt test_%CRDATE%_%CRTIME%.txt
Summary: I am trying to append the create date to a txt file as backup_ddmmyyhhmmss. But instead I get yyyymmddhhmmss.log. Can someone please help me with the format. thanks this is what I have so far: strComp...
Summary: I need had rename files with the date and then move them to a particular foder. I have done the renaming and moving thing successfully but now i also need to delete files in tht particular folder bas...
Summary: Been playing and have another update: using this: ============ @echo off setlocal EnableDelayedExpansion for /f "tokens=1-3,* skip=5" %%a in ('dir *.* /tc /a-d ^| find /v "(s)"') do ( set CDate=%%a s...