Sign in to follow this  
Followers 0
r1ddl3r

Autorun?

11 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 Autorun

BusRunner

:think:

Share this post


Link to post
Share on other sites

All of them say it will look for an Autorun.inf file, how or where could I get that?

-riddler

Share this post


Link to post
Share on other sites

All of them say it will look for an Autorun.inf file, how or where could I get that?

-riddler

Create it. It's just a text file with an inf extension, so create a new text file, name it Autorun.inf, and edit it.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by r1ddl3r

Share this post


Link to post
Share on other sites

um u connect it to your computer and put it on there?

Share this post


Link to post
Share on other sites

What do I put in it? Like

run ("filenamehere") ?

Share this post


Link to post
Share on other sites

#10 ·  Posted

Thanks!

That was what I was looking for.

I love this forum, very fast replies :think:

Share this post


Link to post
Share on other sites

#11 ·  Posted

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

:think:

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