Sign in to follow this  
Followers 0
erikson

one last problem

5 posts in this topic

#1 ·  Posted (edited)

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



Not sure at all what your asking... maybe try this:

$dest = 'F:\dbs\2006\'


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Look at _FileListToArray() and FileMove() each individually in a For/Next loop then.


[center]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.[/center]

Share this post


Link to post
Share on other sites

a more simple method?

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  
Followers 0