Solarlight27 Posted March 1, 2012 Share Posted March 1, 2012 What I'm looking for is a script that once I plug in my USB it'll run a script to open multiple programs/folder/files at once or one after the other.. How would I write this code? Any ideas would be great Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 1, 2012 Moderators Share Posted March 1, 2012 This was already answered for you in this post: "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
DW1 Posted March 1, 2012 Share Posted March 1, 2012 (edited) I assume the script will be running from the HDD. If that's the case you could have a file on the usb drive that the script looks for, and if the file is found and the content matches what is expected, then your script fires off a function that opens your programs/folders/files.Another option if you don't want to worry about a file sitting on the drive would be to do this by looking for the device ID of the usb drive. You can find device ID's multiple ways, but if you search for a utility called DevViewer it makes it pretty easy.Edit:Reading the thread JLogan3o13 linked, I think my assumption was incorrect:I assume the script will be running from the HDD. Edited March 1, 2012 by danwilli AutoIt3 Online Help 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