Jump to content

Newbie, Need Help, Command Line Entering?


quest
 Share

Recommended Posts

Hi,

I have just downloaded Autoit and it seems as though it will do what I want but after a few hours cannot get it to work?

I wish to start a program and pass parameters to it.

---------------------

The following works in windows RUN window:

"C:\Program Files\Genie-Soft\Genie Backup Manager V4.0\GBManager.exe" -quick -e -job "Backup System"

---------------------

Expalnation, This part is where the file is located:

"C:\Program Files\Genie-Soft\Genie Backup Manager V4.0\GBManager.exe"

and these are the parameters to be passed to it:

-quick -e -job "Backup System"

---------------------

How do I achieve this in Autoit?

Regards,

Gary

Link to comment
Share on other sites

See FAQ #7 for issues using double quotes in your commands.

You'll want to use Run() to run that command, but you'll need to understand how to use double quotes inside the string that you'll feed to the Run command to get your paramaters to be passed correctally.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

I'm bored, so I'm going to show you.

run('"C:\Program Files\Genie-Soft\Genie Backup Manager V4.0\GBManager.exe" -quick -e -job "Backup System"')

this single quotes around the whole thing preserves the double quotes within.

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...