mattm14 Posted March 8, 2020 Posted March 8, 2020 I can open the program required with: Run("C:\Program Files (x86)\Files\Program.exe") which is pretty simple. I have instances of this program stored in a folder, but I cannot open them. They are stored here: C:\Users\M\AppData\Local\Program They all end with lastsession.ses so I tried: Run("C:\Program Files (x86)\Files\Program.exe -i C:\Users\M\AppData\Local\Program\Name_of_instance\lastsession.ses") But this didn't work. Anyone know how I can achieve this?
argumentum Posted March 8, 2020 Posted March 8, 2020 25 minutes ago, mattm14 said: They all end with lastsession.ses so I tried: Run("C:\Program Files (x86)\Files\Program.exe -i C:\Users\M\AppData\Local\Program\Name_of_instance\lastsession.ses") But this didn't work. it will never work as is. Try: '"C:\Program Files (x86)\Files\Program.exe" -i "C:\Users\M\AppData\Local\Program\Name_of_instance\lastsession.ses"' Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Subz Posted March 9, 2020 Posted March 9, 2020 Recommend use of macros if you want to share the app: :: Compile as 32 bit otherwise @ProgramFilesDir will point to the wrong directory. Run('"' & @ProgramFilesDir & '\Files\Program.exe" -i "' & @LocalAppDataDir & '\Program\Name_of_instance\lastsession.ses"')
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