Kopieren von Dateien -> Restdauer anzeigen?

  • Moin,

    wie bekomme ich es mit AutoIt hin, das beim kopieren bzw. verschieben von dateien, mir dann eine Restdauer des kopiervorganges angezeigt wird?

    Danke für eure Hilfe.

    Mfg

    Analyzer

  • Ich würd es so machen^^


    Kopierte Datein Dividieren durch Gesamtgröße

    Dann kommt dir zb 0.6 raus, mal 100 = 60

    Also 60 % ;)


    zb.. gesamtgröße: 10 MB

    ich habe: 2 MB


    2:10 = 0,2 *100 =20 ... 20 % und das stimmt^^

  • Moin,

    als Progressbar habe ich es schon, fehlt nur noch die Zeit angabe dazu :party4:

    Mfg

    Analyzer

  • vll so?

    Das was du schon kopiert hast dividieren mit der Zeit,
    das was dir noch fehlt vom kopieren durch diese Zahl und das ergebniss ist dann sekunden.. das durch 60 und du hast die minuten^^

    • Offizieller Beitrag

    Hi,

    wie ist das hier:

    [autoit]

    ;~ 4 Do not display a progress dialog box.
    ;~ 8 Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
    ;~ 16 Respond with "Yes to All" for any dialog box that is displayed.
    ;~ 64 Preserve undo information, if possible.
    ;~ 128 Perform the operation on files only if a wildcard file name (*.*) is specified.
    ;~ 256 Display a progress dialog box but do not show the file names.
    ;~ 512 Do not confirm the creation of a new directory if the operation requires one to be created.
    ;~ 1024 Do not display a user interface if an error occurs.
    ;~ 2048 Version 4.71. Do not copy the security attributes of the file.
    ;~ 4096 Only operate in the local directory. Don't operate recursively into subdirectories.
    ;~ 9182 Version 5.0. Do not copy connected files as a group. Only copy the specified files.

    [/autoit][autoit][/autoit][autoit]

    _FileCopy("c:\Downloads\Systemsoftware_INSTALL\Windows Updates\WindowsXP-KB835935-SP2-DEU.exe" ,"C:\")

    [/autoit][autoit][/autoit][autoit]

    Func _FileCopy($fromFile,$tofile)
    Local $FOF_RESPOND_YES = 16
    Local $FOF_SIMPLEPROGRESS = 512
    $winShell = ObjCreate("shell.application")
    $winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES)
    EndFunc

    [/autoit]

    So long,

    Mega

  • Moin,

    danke das ist auch gut :)

    Mfg

    Analyzer

  • Ich habe ein kleines Problem damit ^^

    [autoit]


    ;~ 4 Do not display a progress dialog box.
    ;~ 8 Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
    ;~ 16 Respond with "Yes to All" for any dialog box that is displayed.
    ;~ 64 Preserve undo information, if possible.
    ;~ 128 Perform the operation on files only if a wildcard file name (*.*) is specified.
    ;~ 256 Display a progress dialog box but do not show the file names.
    ;~ 512 Do not confirm the creation of a new directory if the operation requires one to be created.
    ;~ 1024 Do not display a user interface if an error occurs.
    ;~ 2048 Version 4.71. Do not copy the security attributes of the file.
    ;~ 4096 Only operate in the local directory. Don't operate recursively into subdirectories.
    ;~ 9182 Version 5.0. Do not copy connected files as a group. Only copy the specified files.

    _FileCopy("c:\Downloads\Systemsoftware_INSTALL\Windows Updates\WindowsXP-KB835935-SP2-DEU.exe" ,"C:\")

    Func _FileCopy($fromFile,$tofile)
    Local $FOF_RESPOND_YES = 16
    Local $FOF_SIMPLEPROGRESS = 512
    $winShell = ObjCreate("shell.application")
    $winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES)
    EndFunc

    [/autoit]

    Kopieren der Dateien funktioniert, nur die Optionen funktionieren nicht.

    Ok habe mich mittlerweile etwas schlauer gemacht, das die Optionen Wildcards nicht funktionieren. Wäre aber schon kann man das irgendwie lösen.

    Quelle:
    http://www.autoitscript.com/forum/lofivers…php?t32196.html

    In dem Ordner den ich kopieren will sind aber einige verschieden Dateitypen drin. Wie löse ich mein Problemchen ^^

    Ok

    habe jetzt die Lösung des Problems hier gefunden

    http://www.autoitscript.com/forum/index.php?s=&showtopic=26374&view=findpost&p=187997


    Falls sich jemand die Mühe schon gemacht hat, trotzdem danke. ^^

    LG

    Schnuecks

    4 Mal editiert, zuletzt von Schnuecks (24. November 2006 um 11:36)