Solved

Automatically change Network address to local folder

Posted on 2014-02-21
2
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to send commands to switch via telnet programatically 15 88
How do I enable VPN on server 2008 R2 19 63
Network access 24 60
Network VLAN 3 18
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.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

710 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