robzhei Posted April 19, 2007 Posted April 19, 2007 sry, total n00b but Im going crazy here Im trying to get a working progressbar to this script but i just cant figure it out, plz help ? da Code: #include <GUIConstants.au3> $destination = "C:\temp\2.jpg" SplashImageOn("Vägen Till Sverige CopyTool v0.1", $destination,400,300) Sleep(2000) SplashOff() GUICreate("Vägen Till Sverige") Opt("GUICoordMode",2) $Button_1 = GUICtrlCreateButton ("Töm diskett", 100, 200, 100) $Button_2 = GUICtrlCreateButton ( "Kopiera!", 0, -1) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 Run("form.bat") ; Will delete all files on the floppy Case $msg = $Button_2 DirCopy("c:\vts\vtsa", "c:\temp\copytest\VTSA", 1) ; These shall be to A: later DirCopy("c:\vts\vtsb", "c:\temp\copytest\VTSB", 1) ; These shall be to A: later EndSelect Wend
MHz Posted April 19, 2007 Posted April 19, 2007 Welcome,You can use the one Windows uses for copying files or a folder. Take a look here at a compact UDF that JdeB posted previously.
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