I have been attempting to replicate the function subst.exe (windows app for mapping drives) using rundll32.
I know that DefineDOSDevice
is used and I know what parameters to pass but I just can`t get it to work.
Lets just say I want C:\Program Files mapped as Z:
rundll32.exe kernel32.dll, DefineDosDeviceA * * *
I have tried passing all the paremeters in what I think is the correct form with no success.
If anyone could provide me with working syntax for mapping program files to Z: using rundll32 I would be very happy.
Thanks in advance.