I've seen a suggestion to change a file's modification timestamp with the copy command:

>copy file.ext +b

Is there a way to do this on a XP machine without copying or external programs?

Edit: I asked the question because my mp3 player irritatingly lists files by modification stamp. This is what I ended up doing:

>dir *.mp3 /b > dir.txt
>for /f "delims=" %f in (dir.txt) do copy "%f" +b
>del dir.txt

Nope, copy seems to be the only way to go without using other external programs. See this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.