2

Possible Duplicate:
How do I make an external hard drive keep the same drive letter permanently?
Unable to make USB drive letter stick
Force a USB device to use a certain drive letter

I have to ensure that a USB HDD mounts to a specific drive letter if pluged in.

This may seem a duplicate of many other questions, but I can't use USBDLM (USB Drive Letter Manager) on the host machine. An autorun batch would be great. Or can you help me writing a c# autorun app for my problem?

Marcel Benthin
  • 163
  • 1
  • 7
  • See "Force a USB device to use a certain drive letter" at http://superuser.com/questions/70295/force-a-usb-device-to-use-a-certain-drive-letter, or "Unable to make USB drive letter stick" at http://superuser.com/questions/36832/unable-to-make-usb-drive-letter-stick, or "How do I make an external hard drive keep the same drive letter permanently?" at http://superuser.com/questions/98924/how-do-i-make-an-external-hard-drive-keep-the-same-drive-letter-permanently, or... – Arjan Feb 16 '10 at 14:01
  • "I can't use USBDLM." ... I know how to do this manualy, but i'm looking for an automated way to do this. – Marcel Benthin Feb 16 '10 at 14:10
  • Ok, maybe I was too easily triggered by the migration from Stack Overflow. The other questions *do* list other options though. Apart from that USBDLM, what else does not work? (And I assume an autorun file on the drive itself would run *after* Windows has mapped the drive?) – Arjan Feb 16 '10 at 14:28
  • yeah probably, but you can change the drive letter any time manualy so i think this should be possible by code/script. – Marcel Benthin Feb 16 '10 at 14:34
  • @Arjan: the only "other option" I see mentioned at the three "duplicates" you list is "do it manually". – quack quixote Feb 16 '10 at 19:55

1 Answers1

1

In Windows I believe you can set that in the control panel, system administration, computer management, removable storage. (I'm translating here so yours might be slightly different)

You could make a reg dump, configure your own system so it does that, make another reg dump and see what's changed. That registry change you could import using a batch file or something.

I don't usually work with windows anymore, but that's what I remember :)

A windows registry dump can be made with, for example, regedit. (choose export)

Also have a look at this post which may describe what you want.