HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices

new string “X:” with value

\DosDevices\C:\path\to\target