Solved

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

Posted on 2014-01-13
2
2,724 Views
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
    Local $FOF_NOCONFIRMMKDIR = 512
    Local $FOF_NOCONFIRMATION = 16
    If FileExists($pTo) Then DirRemove($pTo,1);This removes the directory and all its file to prevent the annoying overwrite file confirmation message
    DirCreate($pTo)
    $winShell = ObjCreate("shell.application")
    $winShell.namespace($pTo).CopyHere($pFrom)
EndFunc

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

0
Comment
Question by:bbimis
2 Comments
 
LVL 19

Accepted Solution

by:
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...
0
 

Author Closing Comment

by:bbimis
ID: 39779855
thanks this worked
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

696 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