Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Automatically change Network address to local folder

Posted on 2014-02-21
2
Medium Priority
?
272 Views
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)
0
Comment
Question by:mekke10
2 Comments
 
LVL 17

Accepted Solution

by:
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.

Tamas
0
 

Author Comment

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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
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.
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…
Screencast - Getting to Know the Pipeline

782 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