Jump to content

Search the Community

Showing results for tags 'open files'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Automated systems are using FTP to transfer very large 7z files over a WAN into a folder on your server. You would like to test each file (7z -t <filename>) as they are completed during the night. How will you know that the file is finished copying and free to be tested? Here's what I've been trying... +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include <Constants.au3> #Include <File.au3> #Include <Array.au3> #RequireAdmin Global $FileGetList1[1000],$FileGetList2[1000] FileChangeDir("H:\CIS-NG") While 1 FileDelete(@TempDir&"\fileget1.txt") RunWait(@ComSpec & " /c " & "dir H:\CIS-NG\*.* /b /OD >"&@TempDir&"\fileget1.txt",@TempDir,@SW_HIDE) _FileReadToArray(@TempDir&"\fileget1.txt",$FileGetList1) For $x = 1 to $FileGetList1[0] Local $hFile = FileOpen("H:\CIS-NG\"&$FileGetList1[$x], 2) If $hFile = -1 Then ContinueLoop Else FileClose("H:\CIS-NG\"&$FileGetList1[$x]) FileFlush("H:\CIS-NG\"&$FileGetList1[$x]) RunWait(@ComSpec & " /K " & "C:\Progra~2\7-zip\7z.exe t H:\CIS-NG\"&$FileGetList1[$x]&" -pPassword",@TempDir,@SW_MAXIMIZE) If @error Then FileDelete("H:\CIS-NG"&$FileGetList1[$x]) FileDelete("H:\Backups\7z.txt") FileWrite("H:\Backups\7z.txt","The readability of 7z, "&$FileGetList1[$x]&" has failed. The file has been deleted.") RunWait(@ComSpec & " /c " & "c:\backup\blat.exe H:\Backups\7z.txt -to backups@domain.com -server inet1.domain.com -subject "&'"'&"FAILED TEST OF 7z, "&$FileGetList1[$x]&" -f 7zTest@domain.com") Else FileMove("H:\CIS-NG"&$FileGetList1[$x],"H:\2BBURNED") FileDelete("H:\Backups\7z.txt") FileWrite("H:\Backups\7z.txt","The readability of 7z, "&$FileGetList1[$x]&" has passed.") RunWait(@ComSpec & " /c " & "c:\backup\blat.exe H:\Backups\7z.txt -to backups@domain.com -server inet1.domain.com -subject "&'"'&"PASSED TEST OF 7z, "&$FileGetList1[$x]&" -f 7zTest@domain.com") EndIf EndIf Next WEnd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul
×
×
  • Create New...