jslegers Posted November 15, 2016 Share Posted November 15, 2016 Hello, I have made the following script : #include <MsgBoxConstants.au3> If @ProcessorArch = "X86" Then MsgBox($MB_OK, "Tutorial", "32 Bit") Run("tc86\calc.exe", "") Else MsgBox($MB_OK, "Tutorial", "64 Bit") Run("tc64\notepad.exe", "") EndIf I can't get in this case notepad run from the subdirectory tc64. I have also tried .\tc64\notepad.exe and ..\tc64\notepad.exe no luck with both. What am I doing wrong ? Link to comment Share on other sites More sharing options...
Anoop Posted November 15, 2016 Share Posted November 15, 2016 (edited) I tried this in a x64 PC and it is working for me. #include <MsgBoxConstants.au3> If @ProcessorArch = "X86" Then MsgBox($MB_OK, "Tutorial", "32 Bit") Run("tc86\calc.exe", "") Else MsgBox($MB_OK, "Tutorial", "64 Bit") Run("tc64\notepad.exe","") EndIf Edited November 15, 2016 by Anoop Link to comment Share on other sites More sharing options...
JoHanatCent Posted November 15, 2016 Share Posted November 15, 2016 .\tc64\notepad.exe Is working for me! Link to comment Share on other sites More sharing options...
jslegers Posted November 15, 2016 Author Share Posted November 15, 2016 Got it Notepad was broken at this side. Sorry guys for this noob question. Link to comment Share on other sites More sharing options...
meoit Posted November 15, 2016 Share Posted November 15, 2016 You can try this: If @ProcessorArch = "X86" Then MsgBox($MB_OK, "Tutorial", "32 Bit") Run(@ScriptDir & "\tc86\calc.exe", "") Else MsgBox($MB_OK, "Tutorial", "64 Bit") Run(@ScriptDir & "\tc64\notepad.exe", "") EndIf 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