fsUK Posted March 28, 2006 Share Posted March 28, 2006 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 More sharing options...
Developers Jos Posted March 28, 2006 Developers Share Posted March 28, 2006 Run('"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 28, 2006 Moderators Share Posted March 28, 2006 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 fsUKUse single quotes like this: Run('"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"F to Home"') Link to comment Share on other sites More sharing options...
fsUK Posted March 30, 2006 Author Share Posted March 30, 2006 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 More sharing options...
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