Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Way to run .bat file from autoplay CD

1,652 views
Skip to first unread message

ND

unread,
Jun 25, 2004, 10:39:30 PM6/25/04
to
I need to upgrade multiple PCs in a lab using a batch file (.bat). How can
I place that on a CD to autorun when I put it into the PC?

Thanks.

Charles Dye

unread,
Jun 25, 2004, 11:39:26 PM6/25/04
to
On Fri, 25 Jun 2004 21:39:30 -0500, ND <n...@nd2.nd2.com.invalid> wrote:

>I need to upgrade multiple PCs in a lab using a batch file (.bat). How can
>I place that on a CD to autorun when I put it into the PC?

This is, I think, the same problem as autostarting an HTML file from
a CD-ROM. The Windows autorun mechanism was designed only to launch
*programs*, not batch files or HTML files or any other kind of data
files.

What's needed is a utility program, to be started via AUTORUN.INF,
which in turn will start the desired data file in its associated
application. I have not tested, but believe that the AUTORUN.EXE
from here: http://members.ozemail.com.au/~nulifetv/freezip/freeware/
should serve the purpose. (Note that the .BAT will be handled by
whatever program happens to be associated with that extension on
a given machine. Most likely CMD.EXE on Windows NT/2000/XP and
COMMAND.COM on Windows 95/98/Me, but other associations are
certainly possible.)

--
Charles Dye ras...@highfiber.com

foxidrive

unread,
Jun 26, 2004, 1:24:23 AM6/26/04
to
On Fri, 25 Jun 2004 21:39:26 -0600, Charles Dye wrote:

> On Fri, 25 Jun 2004 21:39:30 -0500, ND <n...@nd2.nd2.com.invalid> wrote:
>
>>I need to upgrade multiple PCs in a lab using a batch file (.bat). How can
>>I place that on a CD to autorun when I put it into the PC?
>
> This is, I think, the same problem as autostarting an HTML file from
> a CD-ROM. The Windows autorun mechanism was designed only to launch
> *programs*, not batch files or HTML files or any other kind of data
> files.

I've made autorun cds using batch files.

in your AUTORUN.INF use something like this:
[autorun]
OPEN=MENU.BAT
ICON=SHEEP.ICO

and place AUTORUN.INF, menu.bat and the icon in the root of the cdrom.

Charles Dye

unread,
Jun 26, 2004, 12:18:44 PM6/26/04
to

You're right; I stand corrected.

--
Charles Dye ras...@highfiber.com

ND

unread,
Jun 26, 2004, 6:07:35 PM6/26/04
to
foxidrive <foxi...@Shotmail.com.invalid> wrote in
news:z0e6tx1wl6sh.17ta0o3zkai1a$.d...@40tude.net:

Thanks for the suggestions. I'll give them a try.

Todd Vargo

unread,
Jun 27, 2004, 12:51:17 AM6/27/04
to

"ND" <n...@nd2.nd2.com.invalid> wrote in message
news:Xns9514B82B7817Bn...@216.196.97.131...

Actually, only autorun.inf needs to be in the root. The others can be placed
anywhere on the cd and use relative paths in autorun.inf.

[autorun]
OPEN=\path_on_cd\MENU.BAT
ICON=\another_path_on_cd\SHEEP.ICO

--
Todd Vargo (remove hyphen to reply by email)


mojtaba...@gmail.com

unread,
Jan 5, 2013, 5:19:51 PM1/5/13
to
how to for autorun from usb drive?

Todd Vargo

unread,
Jan 5, 2013, 6:03:34 PM1/5/13
to
On 1/5/2013 5:19 PM, mojtaba...@gmail.com wrote:
> how to for autorun from usb drive?

Use Google to research autorun.inf

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

Andy

unread,
Jan 8, 2013, 3:58:25 AM1/8/13
to
Keep in mind that users can disable autoplay.

Mine is disabled.

Andy

Todd Vargo

unread,
Jan 8, 2013, 9:18:08 AM1/8/13
to
On 1/8/2013 3:58 AM, Andy wrote:
> On Saturday, January 5, 2013 5:03:34 PM UTC-6, Todd Vargo wrote:
>> On 1/5/2013 5:19 PM, mojtaba...@gmail.com wrote:
>>
>>> how to for autorun from usb drive?
>>
>> Use Google to research autorun.inf
>
> Keep in mind that users can disable autoplay.
>
> Mine is disabled.
>
> Andy
>

Hence the term, "research".

The information is already out there, you just have to read it. Simply
typing autorun.inf into Google will include many results on how to
disable and/or enable it (in addition to creating the file).

Mart

unread,
Jan 8, 2013, 6:02:44 PM1/8/13
to
Autorun on USb is standard disabled on versions vista and up

Op 1/8/2013 3:18 PM, Todd Vargo schreef:
0 new messages