Hallo alle
Ich brauche zu Progressbar auch mal bitte eure Hilfe .
Ich hätte gern in mein Backup-Restore Tool auch eine Progressbar weil der Kopiervorgang meistens mindestens 10 Minuten dauert .
Habe das auch schon soweit hinbekommen das eine Progressbar angezeigt wird , ist auch nach der Größe von Ordner My Flash Disk berechnen , das passt schon mal , zwar noch nicht perfekt aber es kommt hin , bei einem 10 Minuten Backup läuft die Prograssbar 10 Minuten 35 Sekunden .
Aber das eigentliche Problem ist für mich das ich diese Progressbar in Ausübung eines Kopierbefehl haben möchte ,
FileCopyDir, \My Flash Disk, %Save%,1
Dieser FileCopyDir führt den Befehl erst fertig aus ehe am Fortschrittbalken etwas fortgeführt wird .
Wie schaffe ich es das dass Script während FileCopyDir weiter arbeitet und nicht wartet ?
Ist eigentlich das gleiche Problem wie von diesem User
http://www.autohotke...8f3226b35e211a0
Hier ist zwar eine Lösung aber ich glaube nicht für mich da ich ein ganzen Ordner mit Unterordner kopiere , oder ?
http://www.autohotke...ck/#entry136263
und da es auf WinCE sein muss geht es bestimmt nicht mit diese dllcall , oder ?
Gruß Manni
; Backup Restore MFD #Persistent #NoEnv #SingleInstance force #NoTrayIcon IfExist \Storage Card\Gopalworld-Skin\My Flash Disk\menu.exe Save := "\Storage Card\Gopalworld-Skin\My Flash Disk" Else Save := "\Storage Card\Backup\My Flash Disk" Backup := 0 Restore := 0 Gui, +AlwaysOnTop -SysMenu -Border Gui, Add, Progress, x0 y0 w420 h10 cBlue vMyProgress Range0-100 Gui, Show, x20 y259 w420 h10 SetBatchLines, -1 Ordnergröße = 0 BeliebigerOrdner := "\My Flash Disk" Loop, %BeliebigerOrdner%\*.*, , 1 Ordnergröße += %A_LoopFileSize% ;MsgBox, 0x0,, Der Ordner %BeliebigerOrdner% hat eine Größe von %Ordnergröße% Bytes. MsgBox, 0x4,, Die My Flash Disk auf Storage Card sichern ? IfMsgBox Yes { Backup := 1 } Else { IfExist %Save% { Restore := 1 MsgBox, 0x4,, Die My Flash Disk Sinerung von Storage Card Restoren ? } Else { MsgBox, 0x0,Timeout, Du hast noch kein Backup angelegt ! ExitApp } } IfMsgBox No ExitApp Process, Close,Poiwarner.exe Process, Close,ST.exe Process, Close,AudioManager.exe Process, Close,ssp.exe Process, Close,ssp_so.exe Process, Close,Menue.exe Process, Close,LowBatteryWarning.exe Process, Close,FirstStartAP.exe Process, Close,GnsFmTSrvc.exe Process, Close,PhoneLink.exe Process, Close,FMTService.exe If Backup = 1 { FileCreateDir, %Save% FileCopyDir, \My Flash Disk, %Save%,1 i=0 Ordnergröße2 := Ordnergröße / 1000 / 1000 * 12 ;MsgBox, 0x0,, %Ordnergröße2% SetTimer,aa,%Ordnergröße2% return aa: i++ GuiControl,, MyProgress, %i% if i=100 { Gui, Destroy SetTimer,aa,off GoTo, ende } return Ende: SoundBeep, 750, 500 Sleep, 500 ExitApp } MsgBox, 0x4,, Soll vorm Restore die My Flash Disk gelöscht werden , dann geht das Restoren schneller ? IfMsgBox Yes { FileRemoveDir, \My Flash Disk\MapRegions, 1 FileRemoveDir, \My Flash Disk\Navigation, 1 FileRemoveDir, \My Flash Disk\Bluetooth, 1 FileRemoveDir, \My Flash Disk\settings, 1 FileRemoveDir, \My Flash Disk\CLM, 1 FileRemoveDir, \My Flash Disk\dokus, 1 FileRemoveDir, \My Flash Disk\Programme, 1 FileRemoveDir, \My Flash Disk\Startmenue, 1 FileDelete, \My Flash Disk\*.* } Sleep, 500 If Restore = 1 { FileCopyDir, %Save%, \My Flash Disk ,1 ; Hier kommt dann auch noch das was in Backup steht rein . } SoundBeep, 750, 500 Sleep, 500 MsgBox, 0x0,fertig, Der Kopiervorgang ist abgeschlossen ! ExitApp