Jump to content

progressbar for my filecopy script plz!


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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