Organizing Files
Posted: Mon Jun 30, 2014 8:38 pm
Hi, I am currently writing a script to organize my files for me, and I am coming across a simple logical issue. What I am doing is having my MIS system output a x XML File. I have switch read it in my script for the Job Number in the XML.
I have the script go find the folder to move in a place where all files are kept for waiting to work on area and move it to the new place where my prepress department will work on it.
I can get the folder to move and i can get it to create the organization of all the folders that are needed. I just can not get the files that are in the files to move in to a sub folder of the folders that I'm creating.
There's three ways that i have tried to do this, but neither work quite right.
First way was to create the folder using the scripting in the new place where i want my prepress department to work on them, Great! the issue i have here is that I create the folders, there but can not figure out how to take the files that i found in the waiting to work on area and push them into a new folder which i created in the prepress working files area. I can push them to the top layer though.
Second way was to find the folder that needs to be moved change the name of it to what i want, add the folder organization that i want in to that folder, which is great but the file are still on the top layer and i want them to be organized into different folders that have been created in the moving folder and then move the folder to the working area.
Does anybody have an idea on the best way to do this, basically moving a folder of files to a place that does not exist until the program has ran and creating and renaming things along the way.
I have the script go find the folder to move in a place where all files are kept for waiting to work on area and move it to the new place where my prepress department will work on it.
I can get the folder to move and i can get it to create the organization of all the folders that are needed. I just can not get the files that are in the files to move in to a sub folder of the folders that I'm creating.
There's three ways that i have tried to do this, but neither work quite right.
First way was to create the folder using the scripting in the new place where i want my prepress department to work on them, Great! the issue i have here is that I create the folders, there but can not figure out how to take the files that i found in the waiting to work on area and push them into a new folder which i created in the prepress working files area. I can push them to the top layer though.
Second way was to find the folder that needs to be moved change the name of it to what i want, add the folder organization that i want in to that folder, which is great but the file are still on the top layer and i want them to be organized into different folders that have been created in the moving folder and then move the folder to the working area.
Does anybody have an idea on the best way to do this, basically moving a folder of files to a place that does not exist until the program has ran and creating and renaming things along the way.