Automatically change Network address to local folder

Posted on 2014-02-21
Medium Priority
Last Modified: 2014-02-24
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)
Question by:mekke10
LVL 17

Accepted Solution

TimotiSt earned 1000 total points
ID: 39878311
It might be possible with some creative use of a DFS namespace, but I'd say you shouldn't produce code like that in the first place, it's inviting trouble.


Author Comment

ID: 39882941
Sadly enough we had no control over the original code. We decided to refactor all the code containing the hard-coded path.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
Six Sigma Control Plans
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question