Noél Dubau Posted June 11, 2012 Posted June 11, 2012 Hello, I need to move a folder to another one to archive it. In the sample file of SM is a Move Or Rename File ; the notes says This renames and/or moves a source file or folder to a destination file or folder. This returns a 1 if it is successful and a 0 otherwise. This will fail if the destination parent folder does not exist, or if you try to move between two volumes. and seems what I hope. I try the following params under Windows : originalPath = /c:/GestALSH/Factures_PDF/E2011_2012 moveToPath = /c:/GestALSH/Archives/ It returns me alway 0 and I dont'see where is my error ! Thanks for help Noël Edit : a- the tries I did seem show that moving is not possible if there are subdirectories b- it runs on the mac and not the pc
clemhoff Posted June 11, 2012 Posted June 11, 2012 Noël, If you want to move the folder "c:/GestALSH/Factures_PDF/E2011_2012" to the "Archives" directory of "c:/GestALSH/" then you have to set your destination path to "c:/GestALSH/Archives/E2011_2012" REM: the destination directory must not exists prior to the move process. (first check if "c:/GestALSH/Archives/E2011_2012" exists, if yes, rename your destination directory or delete the existing one.)
Noél Dubau Posted June 11, 2012 Author Posted June 11, 2012 Thanks for your help ! As I edited it works fine on the Mac, but not on the PC (seven hosted //), even following your REM. Leaving for this afternoon.... Noël
Noél Dubau Posted June 11, 2012 Author Posted June 11, 2012 Hello Clemhoff Once or twice you drived my Mac from yours ; every time you told that it was a famous boredom ! So I tried this afternoon on 2 PC and got the same bad result ! Fortunaly, I found on this forum what you called "the lazy way" when helping a very bad pupil named Noël : it's there ; I was to novice and didn't try it : it works fine ! Thanks one more time ! Noël
Recommended Posts
This topic is 4616 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now