r1ddl3r Posted May 1, 2006 Share Posted May 1, 2006 I have an AIT script on a flash drive, is there a way to make it so when I stick in the flash drive, it will automatically run a program? Thanks in advnace! -riddler Link to comment Share on other sites More sharing options...
greenmachine Posted May 1, 2006 Share Posted May 1, 2006 Quote from Microsoft.com:What must I do to trigger Autorun on my USB storage device? The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application. Link to comment Share on other sites More sharing options...
MHz Posted May 1, 2006 Share Posted May 1, 2006 Welcome r1ddl3r,You could create a script that can scan the drives for the particular file with a unique name used to run. Look at the Drive* functions. You could use an inf, like a cdrom does and have a unique section name that alerts of it as a USB drive.Some freeware programs that does make a USB drive autorun, to use as an example.APO USB AutorunBusRunner Link to comment Share on other sites More sharing options...
r1ddl3r Posted May 1, 2006 Author Share Posted May 1, 2006 All of them say it will look for an Autorun.inf file, how or where could I get that? -riddler Link to comment Share on other sites More sharing options...
greenmachine Posted May 1, 2006 Share Posted May 1, 2006 All of them say it will look for an Autorun.inf file, how or where could I get that?-riddlerCreate it. It's just a text file with an inf extension, so create a new text file, name it Autorun.inf, and edit it. Link to comment Share on other sites More sharing options...
r1ddl3r Posted May 1, 2006 Author Share Posted May 1, 2006 (edited) My question is, how do I edit it and what would I put in it? Sorry to pester you guys, but I am fairly new to AutoIt. Edited May 1, 2006 by r1ddl3r Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 1, 2006 Share Posted May 1, 2006 um u connect it to your computer and put it on there? Link to comment Share on other sites More sharing options...
r1ddl3r Posted May 1, 2006 Author Share Posted May 1, 2006 What do I put in it? Like run ("filenamehere") ? Link to comment Share on other sites More sharing options...
neogia Posted May 1, 2006 Share Posted May 1, 2006 [Autorun] open=file.exe [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia Link to comment Share on other sites More sharing options...
r1ddl3r Posted May 1, 2006 Author Share Posted May 1, 2006 Thanks! That was what I was looking for. I love this forum, very fast replies Link to comment Share on other sites More sharing options...
MHz Posted May 1, 2006 Share Posted May 1, 2006 Here is a helper program for creating an autorun.inf file. As neogia shows, it is just a simple ini file format.IASScript 1.84 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