Jump to content
Sign in to follow this  
csummers

command line optoins not working

Recommended Posts

csummers

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

Share this post


Link to post
Share on other sites
Jos

try:

Run('"C:\Program Files\Autodesk Land Desktop 2006\acad.exe" /p "MapLandDevelopmentDesktop"')
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Valuater

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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.