autoit copy one directory and its structure to another directory with progress bar

Posted on 2014-01-13
Last Modified: 2014-01-14
Is there a way to copy for instance
e:\setupfiles\*.* to c:\somefolder
and make it show a progress bar and at the same time only copy files that are none existing?

i'm wanting to use something like this:
Func _FileCopy($pFrom,$pTo)
    ;Forget the flags.  They don't appear to work at all
    If FileExists($pTo) Then DirRemove($pTo,1);This removes the directory and all its file to prevent the annoying overwrite file confirmation message
    $winShell = ObjCreate("shell.application")

Open in new window

i can't get the below method to work at least not for visual

RunWait(@ComSpec & " /c " & 'xcopy "' & 'e:\setupfiles\*.*' & '" "' & "c:\somefolder" & '" /D /E /C /R /H /I /K /Y')

Open in new window

Question by:bbimis
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 19

Accepted Solution

Thommy earned 500 total points
ID: 39779556
Have a look at below udf function for copying with progress bar...
dircopy bzw filecopy mit progressbar

Adapt the included xcopy command to your needs...

Author Closing Comment

ID: 39779855
thanks this worked

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Starting up a Project

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question