ren MyDL.sh MyDL.bator
MyDL Z: c:\Windows
subst Z: C:\Windows
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