Solved

Automatically change Network address to local folder

Posted on 2014-02-21
2
255 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
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Solar Winds can't see SQL Server Express 17 33
windows server 2012 R2 DHCP clustering ? 5 25
IDE for Python 5 25
IP range 6 31
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

830 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