0

When a removable USB HDD is plugged into a Windows XP machine, can I make Windows XP share it automatically? The drive is moved around quite often, and it is a hassle having to 'reshare' it each time it is plugged in. I was looking at the mountvol command, which might do what I want, but I don't want to waste time and effort if there is an existing solution.

Currently I use

mountvol c:\extern \\?\Volume{ volume_id }

in a .bat file in the root of the drive, with c:\extern shared, but I'd like this to trigger whenever the drive is plugged in, without needing to enable AutoRun... unless AutoRun can be enable only for specific volumes?

1 Answer 1

0

You can put an autorun.inf in the root of the drive that calls a .bat that maps the drive via net share. This seems like the easiest solution.

1
  • What drive letter do I map to the share? The drive letter assigned by the OS changes if other storage devices are plugged in. Can you map via volume id instead?
    – x-x
    Jul 12, 2010 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .