Sign in to follow this  
Followers 0
malinduta

Filecopy & Create Subfolders

7 posts in this topic

Hello...,

Here is my question:

I want to copy all files and subfolders from a given folder to a given path. I already have a UDF that finds all files from all subfolders. My problem is I don`t know how to create destination subfolders. I don`t want to use DirCopy because i want to use a progress bar that shows where current file is copied.

I already tryed _PathSplit and _PathMake but no success.

Any ideas?

Share this post


Link to post
Share on other sites



you cam search scripts and scrapts for "copy with progress"

there are a few

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

you cam search scripts and scrapts for "copy with progress"

there are a few

8)

Filecopy() in Beta has an option to create the target directory...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Filecopy() in Beta has an option to create the target directory...

But how to tell AutoIt what subdirs to create and in what dir?

Share this post


Link to post
Share on other sites

But how to tell AutoIt what subdirs to create and in what dir?

You say you have an UDF that reads all the source directories, so can you use the source directory as part of the target ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

But how to tell AutoIt what subdirs to create and in what dir?

You can store your desired "sub" directory's in an array, then create them like that, or if your using the file name for the "sub" directory then use string manipulation to create your new "sub" directory name.

[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

You say you have an UDF that reads all the source directories, so can you use the source directory as part of the target ?

I tried this with _PathMake and _PathSplit but no success.

Thank you all for such fast replyes. I wasn`t expected.

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