Sign in to follow this  
Followers 0
robzhei

progressbar for my filecopy script plz!

2 posts in this topic

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 ? :shocked:

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

Share this post


Link to post
Share on other sites

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.

:shocked:

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  
Followers 0