quest Posted August 14, 2004 Posted August 14, 2004 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
pekster Posted August 14, 2004 Posted August 14, 2004 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.
emmanuel Posted August 14, 2004 Posted August 14, 2004 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)
quest Posted August 15, 2004 Author Posted August 15, 2004 Thanks to both of you, that worked fine! Regards, Gary
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