Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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"')
Posted

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

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
  • Recently Browsing   0 members

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