Question Locked

Archiving hidden files

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm attempting to move only hidden files from one folder to another using a batch file. I can only find where to include hidden files, not copy or move only hidden files. Please help.

3 replies

by toivo talikka

You can use brute force unless it creates too much overhead:

XCOPY /H copies the files, including the hidden files to a new destination

DEL /A-H deletes non-hidden files from the new folder

DEL /AH deletes hidden files from the original folder

This discussion is closed to new replies.