Jump to content
Sign in to follow this  
erikson

one last problem

Recommended Posts

erikson

hi again

i hope this is my last problem for today ( is not so cool to be a newbie)

i must move a folder

the problem

CODE
$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\mon

but i must have something like:

f:\dbs\2006\mon

any ideas?

Edited by erikson

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
erikson

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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.