Is there a way to map a local directory in Windows 10 as a network drive? I want to map C:\datastore
as if it were \\datastore
. Although there is plenty of information on mapping a network drive to a local drive I'm basically wanting it to go in the other direction.
For background I'm testing a piece of compiled software that is currently throwing an exception while trying to read data from a file. I have access to the source code and can see that it's trying to reference a file on a hard-coded network drive. I don't have access to the network drive from my computer, though I was able to retrieve the file through other means and add it to a local folder. I want to test the software as it written without modifying the source code to refer to the local drive or relative path.
I tried mklink /D \\datastore C:\datastore
and received The specified path is invalid.