Jump to content

File Command Line Arguments/prefixes


fsUK
 Share

Recommended Posts

Hi im a novice with autoit, im still learning so bear with me.

ive had a problem when creating a script to run which will use synctoy when my flash drive is pluged in.

Basicy i want to run this (as it would appear in a shortcut):

"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"

normaly id would just do (as it would appear in .au3):

Run("C:\Program Files\Microsoft\SyncToy\SyncToy.exe").

but because the prefix/argument has "" in it this messes everything else up because autoit usees "" as seporators.

Any help would be appreciated.

Thanks

fsUK

Link to comment
Share on other sites

  • Moderators

Hi im a novice with autoit, im still learning so bear with me.

ive had a problem when creating a script to run which will use synctoy when my flash drive is pluged in.

Basicy i want to run this (as it would appear in a shortcut):

"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"

normaly id would just do (as it would appear in .au3):

Run("C:\Program Files\Microsoft\SyncToy\SyncToy.exe").

but because the prefix/argument has "" in it this messes everything else up because autoit usees "" as seporators.

Any help would be appreciated.

Thanks

fsUK

Use single quotes like this:

Run('"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"')
Link to comment
Share on other sites

Use single quotes like this:

Run('"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"')
Thanks guys.

The reason i havn't replied sonner is becasue i was expexcting e-mail notification of replies. Must have a setting wrong

TA

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...