coucou Posted February 22, 2010 Share Posted February 22, 2010 (edited) Hi, I'm looking to patch a file. Although, i copy and run the patch file from an existing folder, I always got a window's message "Choose the directory where is the file to patch" (see image bellow) How can I automatically patch the selected directory/file without choosing it? Regards ; Exit if Compare Suite is not installed. If Not FileExists(@ProgramFilesDir & "\Compare Suite\comparesuite.exe") Then MsgBox(0x40030, @ScriptName, @ProgramFilesDir & "\Compare Suite\comparesuite.exe is not exist", 10) Exit 1 EndIf $folder = @ProgramFilesDir & "\Compare Suite\" FileCopy("Cmp_patch.exe", $folder) Sleep(1000) $title= "Compare Suite" Run($folder & "Cmp_patch.exe") WinWaitActive($title) ControlClick($title, "", "Button7"); Patch it Sleep(1000) ControlClick($title, "", "Button9"); Exit Sleep(2000) FileDelete(@ProgramFilesDir & "\Compare Suite\Cmp_patch.exe") Edited February 22, 2010 by coucou Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now