Sign in to follow this  
Followers 0
fsUK

File Command Line Arguments/prefixes

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
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

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  
Followers 0