Automatically change Network address to local folder
Posted on 2014-02-21
I have the following problem:
In development a lot of code writes to a 'hard-coded' drive \\XYZ. However when moving to staging, this drive does not exists.
We are trying to somehow make the server realize that when the application requests \\XYZ, to direct it to a local folder say 'D:\Data'.
Basically it's the reversed of what is possible with mklink where you point a local folder to a network folder. We need to point a network folder to a local folder.
Is this possible?
Environment: Windows server 2003
Code is done in .NET 3.5 (ASP/VB Web app)