Jump to content

Recommended Posts

Posted

hello,

I have a exe that that copy's a dir to a other dir with this function

DirCopy($Path & "\Sound" , $testpath & "\sound\Backup", 1)

(I declared $path and testpath)

but now I want to put a `progress on` on it and I went looking in the help for it but there I saw only with seconds and not with files and because my function is dircopy I don't know what to type for progress on.. so is it possible for `progress on` the recognize how much % left of the dir copy there is each time?

Posted

Autoit Wrappers is your friend!!! There is this and many, many more helpful scriplets!!

http://www.autoitscript.com/forum/index.ph...st&p=133769

and the actual UDF

http://www.autoitscript.com/forum/index.ph...st&p=186198

8)

hi,

i found this on the link that you gave me

_FileCopy("D:\test.exe","C:\temp")

Func _FileCopy($fromFile,$tofile) 
    Local $FOF_RESPOND_YES = 16
    Local $FOF_SIMPLEPROGRESS = 256
    $winShell = ObjCreate("shell.application")
    $winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES)
EndFunc

but dos it work for folders to?

Posted

Worked for me

_FileCopy("c:\test\*.*","C:\temp")

Func _FileCopy($fromFile,$tofile)

Local $FOF_RESPOND_YES = 16

Local $FOF_SIMPLEPROGRESS = 256

$winShell = ObjCreate("shell.application")

$winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES)

EndFunc

althought the folders already exits

try, if not just create the folder

8)

NEWHeader1.png

Posted (edited)

Worked for me

_FileCopy("c:\test\*.*","C:\temp")

Func _FileCopy($fromFile,$tofile)

Local $FOF_RESPOND_YES = 16

Local $FOF_SIMPLEPROGRESS = 256

$winShell = ObjCreate("shell.application")

$winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES)

EndFunc

althought the folders already exits

try, if not just create the folder

8)

ok thank you very much and will try it right now :)

edit: Worked For Me And Thx Very Much

Edited by lilx

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...