Docfxit Posted July 16, 2010 Share Posted July 16, 2010 (edited) I'm having trouble unzipping a file in Win7 64bit My first problem is trying to figure out the error that is happening. The code I am using is: Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Opt("SendKeyDelay", 5) AutoItSetOption("TrayIconDebug", 1) ;0-off ; Set so that tray displays current line number ; Include User.INI Info #include "IniRead.au3" $Var1 = "C:\Dnload\9xAddons\Ultimate Windows Tweaker v 2.1.zip" If _OSVersion() = "Win7" Or "Win7X64" Then $ProgramFiles = "C:\Programs\" $Win7 = "7" Else $ProgramFiles = "C:\Program Files\" EndIf Local $sUserName = "Administrator" Local $sPassword = "" $Return = RunAsWait($sUserName, @ComputerName, $sPassword, 0,@Comspec & ' /c C:\Dnload\9xAddons\UnZip.bat "' & $Var1 & '" & "' & $Win7 & '"') If @error Then MsgBox(0, "Error unzipping file", "Error code: " & @error & @CRLF & $Var1 & @CRLF & "Return value = " & $Return) Else MsgBox(0, "File UnZipped", "File UnZipped Correctly") EndIf The error I get is: I'm getting an error code of 1 That means it failed. How can I figure out why? The Return value = 0 Thanks, Docfxit Edited July 16, 2010 by docfxit Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now