AUTORUN.INF with CF Media and USB Readers

L

Luke

I'm trying to use an AUTORUN.INF on a CF Stick in my USB
Card Reader just as I would on a CD-R Disk and WinXP
Professional just ignores it.

The file contains -

[autorun]
open=backup.bat

This file is in the root of the CF Stick. Does anyone have
a way to enable autorun.inf support on card media? When
the file is on the media windows does nothing after I
insert the stick. If the file isn't there windows opens an
explorer window.

I've thought that maybe the file hard to be an EXE but
this too doesn't work.

As you guessed i'm trying to automate some backup jobs.

If you have anything on this please drop me an email i'd
be greatful!
 
D

Doug Knox MS-MVP

The references that I can find indicate that it should work, but all point to an EXE file as the executable.
 
R

Ramesh [MVP]

Autorun.inf files are not supported under Microsoft® Windows® XP for drives that return DRIVE_REMOVABLE from GetDriveType. [Removale drives]
From MSDN:
http://msdn.microsoft.com/library/d...ll_basics_extending/autorun/autoplay_cmds.asp

Reference GetDriveType:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getdrivetype.asp

--
Ramesh - Microsoft MVP
http://www.mvps.org/sramesh2k
-------------------------------------------------
Prevent Spyware from being installed:
http://www.mvps.org/sramesh2k/Malware_Defence.htm
-------------------------------------------------


I'm trying to use an AUTORUN.INF on a CF Stick in my USB
Card Reader just as I would on a CD-R Disk and WinXP
Professional just ignores it.

The file contains -

[autorun]
open=backup.bat

This file is in the root of the CF Stick. Does anyone have
a way to enable autorun.inf support on card media? When
the file is on the media windows does nothing after I
insert the stick. If the file isn't there windows opens an
explorer window.

I've thought that maybe the file hard to be an EXE but
this too doesn't work.

As you guessed i'm trying to automate some backup jobs.

If you have anything on this please drop me an email i'd
be greatful!
 
D

Doug V.

Luke said:
I'm trying to use an AUTORUN.INF on a CF Stick in my USB
Card Reader just as I would on a CD-R Disk and WinXP
Professional just ignores it.

The file contains -

[autorun]
open=backup.bat

This file is in the root of the CF Stick. Does anyone have
a way to enable autorun.inf support on card media? When
the file is on the media windows does nothing after I
insert the stick. If the file isn't there windows opens an
explorer window.

I've thought that maybe the file hard to be an EXE but
this too doesn't work.

As you guessed i'm trying to automate some backup jobs.

If you have anything on this please drop me an email i'd
be greatful!

Luke, you might try the following:

[autorun]
open=Autorun.exe backup.bat

Not sure where you can get Autorun.exe but a
search of Http://www.google.com should reveal some
good results. As Doug Knox stated the ones that
he's seen were with .exe files. for non-.exe files
use the autorun.exe.

HTH Doug V.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top