05 August 2010

Map a Drive Letter to a Local Folder

Download Windows Drive add script from here.
ren MyDL.sh MyDL.bat
MyDL Z: c:\Windows
subst Z: C:\Windows
or
set key="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices"
set DRV="Z:"
set FP="C:\Windows"
reg ADD %key% /V %DRV% /T REG_SZ /F /D "\??\\%FP%"
subst Z: C:\Windows

Reference:
http://code.google.com/p/psubst
http://www.howtogeek.com/howto/windows-vista/map-a-drive-letter-to-a-folder-the-easy-way-in-windows
http://www.windowsitpro.com/article/tips/jsi-tip-9375-how-can-i-create-a-drive-letter-for-a-local-folder-and-have-it-available-to-all-users-.aspx

No comments:

Post a Comment