Varying folder
Posted: Tue Nov 10, 2015 12:24 am
Hi
I'm writing a batch process to merge groups of tiffs into one pdf and I've got it working so that it can cre the file, and everything looks great. One last thing I'm trying to achieve and I can't seem to find it:
there are hundreds of thousands of files in random folders and I want to store them in a new folder structure. So instead of them all being in c:\nconvert\ they should be in subfolders like
c:\nconvert\AB\12345\
c:\nconvert\AB\22334\
c:\nconvert\AB\12233\
c:\nconvert\BG\12233\
c:\nconvert\FC\22334\
and so on. When I set the script to do this i get an error message saying it can't create the file, and I assume this is because it can't create the subdirectories.
Is there any way I can force it to create the folder if it doesn't exist in teh way that - say - xcopy can?
Hm... i suppose I could save it in a temp folder and use xcopy to move it on couldn't i... I might try that if all else fails but I hope it won't be needed!
I'm writing a batch process to merge groups of tiffs into one pdf and I've got it working so that it can cre the file, and everything looks great. One last thing I'm trying to achieve and I can't seem to find it:
there are hundreds of thousands of files in random folders and I want to store them in a new folder structure. So instead of them all being in c:\nconvert\ they should be in subfolders like
c:\nconvert\AB\12345\
c:\nconvert\AB\22334\
c:\nconvert\AB\12233\
c:\nconvert\BG\12233\
c:\nconvert\FC\22334\
and so on. When I set the script to do this i get an error message saying it can't create the file, and I assume this is because it can't create the subdirectories.
Is there any way I can force it to create the folder if it doesn't exist in teh way that - say - xcopy can?
Hm... i suppose I could save it in a temp folder and use xcopy to move it on couldn't i... I might try that if all else fails but I hope it won't be needed!