Jump to content
Sign in to follow this  
lilx

qeustion about progress on/progress set

Recommended Posts

lilx

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?

Share this post


Link to post
Share on other sites
lilx

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?

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
Share on other sites
lilx

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

Share this post


Link to post
Share on other sites
Valuater

Welcome!!

Just remember there is alot more goodies in Autoit Wrappers you might want later

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×