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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now