Jump to content

one last problem


erikson
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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

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

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...