lilx Posted October 15, 2007 Share Posted October 15, 2007 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? Link to comment Share on other sites More sharing options...
Valuater Posted October 15, 2007 Share Posted October 15, 2007 (edited) Autoit Wrappers is your friend!!! There is this and many, many more helpful scriplets!!http://www.autoitscript.com/forum/index.ph...st&p=133769and the actual UDF http://www.autoitscript.com/forum/index.ph...st&p=1861988) Edited October 15, 2007 by Valuater Link to comment Share on other sites More sharing options...
lilx Posted October 15, 2007 Author Share Posted October 15, 2007 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? Link to comment Share on other sites More sharing options...
Valuater Posted October 15, 2007 Share Posted October 15, 2007 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) Link to comment Share on other sites More sharing options...
lilx Posted October 15, 2007 Author Share Posted October 15, 2007 (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)EndFuncalthought the folders already exitstry, if not just create the folder8) ok thank you very much and will try it right now edit: Worked For Me And Thx Very Much Edited October 15, 2007 by lilx Link to comment Share on other sites More sharing options...
Valuater Posted October 15, 2007 Share Posted October 15, 2007 Welcome!! Just remember there is alot more goodies in Autoit Wrappers you might want later 8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now