Solved

Automatically change Network address to local folder

Posted on 2014-02-21
2
243 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 500 total points
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now