csummers Posted June 2, 2006 Share Posted June 2, 2006 Hello all, just started using AutoIT, loving it so far. My problem is I am trying to run an application with some command line switches it needs, below is what the command line looks like for running the application: "C:\Program Files\Autodesk Land Desktop 2006\acad.exe" /p "MapLandDevelopmentDesktop" Here is what I have in my script: Run("C:\Program Files\Autodesk Land Desktop 2006\acad.exe" /p "MapLandDevelopmentDesktop") Any help would be great, thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted June 2, 2006 Developers Share Posted June 2, 2006 (edited) try: Run('"C:\Program Files\Autodesk Land Desktop 2006\acad.exe" /p "MapLandDevelopmentDesktop"') Edited June 2, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valuater Posted June 2, 2006 Share Posted June 2, 2006 (edited) it has to do with the quotes (") this is how i test what the CMD will see MsgBox(0,0,'"C:\Program Files\Autodesk Land Desktop 2006\acad.exe" /p "MapLandDevelopmentDesktop"') 8) i dont know the exact quotes and spacing for your run command ''' ah JdeB was faster Edited June 2, 2006 by Valuater 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