I have a folder "Documents" with a lot of subfolders. There are files under these subfolders.
My objective is to move the files to one folder location then at some point be able to move them back to the subfolders they came from.
My general idea is to append the subfolder name to the beginning of the file after being moved. Then maybe use this as a reference when they need to be moved back to their source subfolder.
Is this doable or do you have any other ideas on how I can achieve this? I only know how to move/copy the files in VBA.
This is the current code I use:
Fldr= "C:\Documents"
Set fs=createobject("scripting.filesystemobject")
Set f=fs.getfolder(Fldr)
Set fsub=f.subfolders
For each f in fc
Subfolderspec=Fldr&""&f.name
fs.copyfile Subfolderspec & ".", "C:\Test"
On Error Resume Next
Next