Discussion:
Win98: Auto-run a disk?
(too old to reply)
Harry Potter
2020-04-11 17:11:09 UTC
Permalink
Hi! Is there a way to automatically open a disk or drive when inserted? If not, I'll just create a program to do it myself.
R.Wieser
2020-04-11 17:32:05 UTC
Permalink
Harry,
Post by Harry Potter
Hi! Is there a way to automatically open a disk or drive when inserted?
Yes. That is, at least for XP and W7, the default behaviour for an USB
thumbdrive or disk. You know, the "what do you want to do with this drive"
(or something like that) dialog ? At least under XP I had to do some
registry editing to disable it (for all USB storage).

But... what does "open a disk or drive" mean to you ? We are (still) not
mindreaders you know. If the above is not what you ment than you only
(again) have yourself to blame.

Regards,
Rudy Wieser
JJ
2020-04-11 18:40:51 UTC
Permalink
Post by Harry Potter
Hi! Is there a way to automatically open a disk or drive when inserted?
If not, I'll just create a program to do it myself.
Two options.

Using `autorun.inf` file where its default action is to open the drive
letter of the inserted disk, by running a program / VBcript in the inserted
disk so that it can know the drive letter assigned by the system. This
method won't require additional memory usage, but it doesn't apply to floppy
disks, and it may be disabled by user or anti virus.

Or using a tool which is running in the background where it monitors for
newly appeared drive letters, then opens them. This is an alternative method
in case the above method is disabled, but it'll require additional memory
usage. The advantage is that it can be applied to any storage type.
Harry Potter
2020-04-12 11:49:37 UTC
Permalink
JJ: I thank you for your info. I'll Google autorun.inf now.

R.Weiser: I mean I want Windows to open a USB drive or Zip100 disk in Explorer upon insert.
R.Wieser
2020-04-12 12:59:29 UTC
Permalink
Harry,
Post by Harry Potter
I mean I want Windows to open a USB drive or Zip100 disk in Explorer upon
insert
Yeah, that already sounds better.

And as you might have noticed, athough you had it in the subjecline I missed
the W98 requirement, as it was not mentioned in the question itself. Do
yourself a favour, and write your questions as if the people who will read
them know nothing about what you are busy with or thinking. 'cause, we
really don't.

As for an answer ? JJ gave the most used one for W98 : use an
"autorun.inf" file in the root of your removable media/drive. It works the
same way as on a self-starting CD.

But you know whats funny ? Look at the post directly before the one you
started this thread with. The OP there asked pretty-much the same as you do
here (run on mount). No idea if that method also works for W98 though.

Regards,
Rudy Wieser

Loading...