Jump to content
Sign in to follow this  
malinduta

Filecopy & Create Subfolders

Recommended Posts

malinduta

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
Valuater

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
Jos

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...


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
malinduta

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
Jos

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 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
SmOke_N

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.

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
malinduta

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  

×