Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Feb 16 '10 at 13:53

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Arjan, ChrisF, Diago Feb 16 '10 at 16:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
See "Force a USB device to use a certain drive letter" at superuser.com/questions/70295/…, or "Unable to make USB drive letter stick" at superuser.com/questions/36832/…, or "How do I make an external hard drive keep the same drive letter permanently?" at superuser.com/questions/98924/…, 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 Answer 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.

share|improve this answer
    
reg dump of what? –  Marcel Benthin Feb 16 '10 at 12:10
    
I know how to make a reg dump ... but the problem is that if i make a full reg dump i end up with 2 reg dumps 300MB each ... and WinMerge fails to open this files ... so i can't find the diff –  Marcel Benthin Feb 16 '10 at 13:24
    
Use a command line tool like diff might be a better option then. –  extraneon Feb 16 '10 at 13:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.