PDA

View Full Version : AUTORUN.INF with CF Media and USB Readers


Luke
February 8th 04, 05:24 AM
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!

Doug Knox MS-MVP
February 8th 04, 06:02 AM
The references that I can find indicate that it should work, but all =
point to an EXE file as the executable.

--=20
Doug Knox, MS-MVP Windows XP/ Windows Smart Display
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
=20
"Luke" > wrote in message =
...
> I'm trying to use an AUTORUN.INF on a CF Stick in my USB=20
> Card Reader just as I would on a CD-R Disk and WinXP=20
> Professional just ignores it.=20
>=20
> The file contains -
>=20
> [autorun]
> open=3Dbackup.bat
>=20
> This file is in the root of the CF Stick. Does anyone have=20
> a way to enable autorun.inf support on card media? When=20
> the file is on the media windows does nothing after I=20
> insert the stick. If the file isn't there windows opens an=20
> explorer window.
>=20
> I've thought that maybe the file hard to be an EXE but=20
> this too doesn't work.
>=20
> As you guessed i'm trying to automate some backup jobs.
>=20
> If you have anything on this please drop me an email i'd=20
> be greatful!

Ramesh [MVP]
February 8th 04, 06:02 AM
Autorun.inf files are not supported under Microsoft=AE Windows=AE XP for =
drives that return DRIVE_REMOVABLE from GetDriveType. [Removale drives]
From MSDN:
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/shellc=
c/platform/shell/programmersguide/shell_basics/shell_basics_extending/aut=
orun/autoplay_cmds.asp

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

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


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

The file contains -

[autorun]
open=3Dbackup.bat

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

I've thought that maybe the file hard to be an EXE but=20
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=20
be greatful!

Doug V.
February 8th 04, 02:43 PM
Luke wrote:
>
> 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.

Google