Jump to content

Search the Community

Showing results for tags 'Rename recovery'.

  • 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. Hello, all.. This is probably of limited use, but it saved me a great deal of hair-pulling. Easy Recovery 6 by OnTrack has a slightly annoying feature when recovering files. If it attempts to recover multiple versions of a file to a location, it'll prompt saying that the file already exists - do you want to skip, rename etc. Each time. With no apparent way of remembering your option. I cobbled together the following laughably poor script so that it automatically adds _renameX to the file. If the file ends in an a ".abc" type extension, it puts the _renameX before the . so as to not break the filetype. I have no doubt anyone with even a modicum of AU3 experience will wet themselves at my coding, so please feel free to improve on it. It served my requirements Dim $RenameNum $RenameNum = 0 $App = "EasyRecovery.exe" While ProcessExists($App) ToolTip("Number of renames = " & $RenameNum) WaitForRename() Sleep(100) Wend msgbox(0, "", "All done - renames = " & $RenameNum) EXIT ; ================================================== Func WaitForRename() $Title = "File Exists" ToolTip("Waiting for rename Window to exist") WinWait($Title, "", 10) ToolTip("Waiting for rename window to be active") WinActivate($Title) $WinWA = WinWaitActive($Title, "", 10) If $WinWA = 0 then Return EndIf Send("{End}") ; So we're at the end of the rename text box ; Get the filename $Text = WinGetText($Title) $TextSplit = StringSplit($Text, @LF, 1) If $TextSplit[0] = 12 then $OldFile = $TextSplit[1] $OldFileLen = StringLen($OldFile) $OldFileExt = StringRight($OldFile, 4) ; If it's an extension, jump back before the extension If StringMid($OldFileExt, 1, 1) = "." then Send("{LEFT}{LEFT}{LEFT}{LEFT}") EndIf EndIf $RenameNum = $RenameNum + 1 If $RenameNum < 10 then $RenamePadding = "0" Else $RenamePadding = "" EndIf Send("_Rename" & $RenamePadding & $RenameNum) ControlClick($Title, "", 1018, "left", 1) EndFunc ; ==================================================
×
×
  • Create New...