File Transfer Between PCs
#1
I want to move all DOCX files from an old PC to my new PC, preferably by first putting them all on a flash drive which I use for the transfer.

I've posted code before that would capture a list of files anywhere on the PC that match a filespec such as "*.docx". I can use that to copy files to the flash.

But because some files have the same name, I can't just fill the root folder of the flash with all the files by their original name.  To do that I would have to rename files - such as with a simple prefix of "00001", "0002", etc.  Or, I could prefix the original folder name onto each file name, substituting the \ characters with an underscore.  That won't recreate the old folder structure on the new PC, but will at least capture all of the files.

Better yet, I could use something like Beyond Compare to find only DOCX files and replicate the original folder structure onto the new PC.  That's the most "exact" approach, but I'd have to be careful not to inappropriately overwrite any files on the new PC.

As best I know, the command line xcopy can do a similar thing but doesn't as easily et you pick and chose which files to copy.

Anyone use a better solution?
Reply


Messages In This Thread
File Transfer Between PCs - by Gary Beene - 19.09.2025, 10:32 PM
RE: File Transfer Between PCs - by George Bleck - 19.09.2025, 11:12 PM
RE: File Transfer Between PCs - by Gary Beene - 20.09.2025, 07:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)