You are here

Change Drive Letter

3 posts / 0 new
Last post
arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 2 months ago
Joined: 2006-08-10 16:38
Change Drive Letter

To change a drive letter upon insertion of usb is quite simple. Just one prerequisite: administrator.
So, you need a batch file with the following line:
diskpart /s %temp%\text.txt
and a text file saved as "text.txt" in your temp dir (%temp%) with the following lines:
select volume=F
assign letter=T

In this case, F is the current drive letter (F:\) and T is the drive letter that I want (T:\).
Of course you can create your own exe to extract the current drive letter and make your generate the text file that is required. If you don't have admin privileges, you can always substitute your drive instead by following SmithTech's instructions.

Ed_P
Offline
Last seen: 5 years 6 months ago
Joined: 2007-02-19 09:09
Interesting

You might find this thread https://portableapps.com/node/5011 interesting also.

Ed

Ed

sergentsiler
sergentsiler's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2007-02-28 11:37
what is the point..

in this thread? we all knew that and if we didnt we would ask. so why?

(TM)sergentsilerlogo:<(TM(sergentsiler) http://www.sergentsiler.freespaces.com/

Zoop

Log in or register to post comments