[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2014-01-13
2
Medium Priority
?
3,011 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
[X]
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
2 Comments
 
LVL 19

Accepted Solution

by:
Thommy earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

650 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