Code: Select all
C: Windows
D: Windows
E: Windows
R: Windows
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"D:"="\\DosDevices\\C:\\SomePath1"
"E:"="\\DosDevices\\C:\\Some\\Path2"
"R:"="\\DosDevices\\C:\\Some\\Path\\3"
Expected result after pressing Alt+F1:
Code: Select all
C: Windows
D: C:\SomePath1
E: C:\Some\Path2
R: C:\Some\Path\3
If there is no Windows API for this, you can at least pull it from the Registry location above, which is the official mean for creating persistent virtual drives.