Jump to content

Filecopy & Create Subfolders


Recommended Posts

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?

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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.

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