-
Command-Prompt:
subst(note: not persistent)subst X: "C:\some_target_folder" -
API-Call:
DefineDosDevice(note: not persistent) -
Registry (note: persistent)
"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Dos Devices"
Add a String Value "X:" where X is the new virtual drive and set the value to: "\DosDevices\C:\some_target_folder"