erikson Posted January 19, 2007 Share Posted January 19, 2007 (edited) hi againi hope this is my last problem for today ( is not so cool to be a newbie)i must move a folderthe problemCODE$source = 'F:\docs\allweek' $dest = 'F:\dbs\2006' DirMove ($source, $dest, 1)directory "allweek" have some subfolders and files into it ( ex : thu, sun, mon, etc)the problem is that i need when i move the folder "allweek" into "2006" to move only the folders that are in "allweek".right now when i move , it move all folder "allweek"so i have f:\dbs\2006\allweek\monbut i must have something like:f:\dbs\2006\monany ideas? Edited January 19, 2007 by erikson Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 19, 2007 Moderators Share Posted January 19, 2007 Not sure at all what your asking... maybe try this:$dest = 'F:\dbs\2006\' Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
erikson Posted January 19, 2007 Author Share Posted January 19, 2007 Not sure at all what your asking... maybe try this:$dest = 'F:\dbs\2006\' more simple: with my script right now after the folders move: F:\dbs\2006\allweek\mon my needs: F:\dbs\2006\mon so i whant to move what is in the folder allweek (including subfolders) not the whole "allweek " folder Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 19, 2007 Moderators Share Posted January 19, 2007 Look at _FileListToArray() and FileMove() each individually in a For/Next loop then. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
erikson Posted January 19, 2007 Author Share Posted January 19, 2007 a more simple method? Link to comment Share on other sites More sharing options...
Recommended Posts
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