June 11, 201213 yr 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
June 11, 201213 yr 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.)
June 11, 201213 yr Author 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
June 11, 201213 yr Author 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
Create an account or sign in to comment