Solved

UNC path redirect to different UNC path

Posted on 2014-03-19
6
1,000 Views
Last Modified: 2015-03-27
We have a server application that receives incoming EDI data to different folders under a specific UNC location; for example,

\\csvr2\folder1\folder2\data\edi1
\\csvr2\folder1\folder2\data\edi2
\\csvr2\folder1\folder2\data\edi3

and so on.  We have other applications/scripts that retrieve data from each of these folders, and they contain the UNC path.

Here's the problem...the new version of the server application installs to a completely different location:

\\csvr2\program files\new1\new2\new3\new4\data

So, now we have:
\\csvr2\program files\new1\new2\new3\new4\data\edi1
\\csvr2\program files\new1\new2\new3\new4\data\edi2
etc.

So, is there a method to redirect \\csvr2\folder1\folder2\data\ to \\csvr2\program files\new1\new2\new3\new4\data\ ?

I'm trying to avoid having to re-write multiple apps and scripts...

Group Policy?
DFS?
DNS?
Registry (server or client)?

The server hosting this app is a Server 2003 VM (Hyper-V), standard Windows domain (2008 functional level).

Many thanks in advance!

Mike
0
Comment
Question by:mporcellana
[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
6 Comments
 
LVL 37

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39941604
This is not possible in case of shared folders

Either you need to change the new software configuration to work with old shared paths or you need to change in scripts or where you entered the old paths
0
 
LVL 22

Expert Comment

by:Matt V
ID: 39942275
You could create symbolic links from \\csvr2\folder1\folder2\data\ to \\csvr2\program files\new1\new2\new3\new4\data\ on the application server.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363878(v=vs.85).aspx
0
 
LVL 25

Expert Comment

by:Coralon
ID: 39944206
I'm with mattvmotas.  Depending on your OS, you can just create links for each of the directories.

If it is Win2k3, you'll want the junction.exe utility from SysInternals. http://technet.microsoft.com/en-us/sysinternals/bb896768.  If it is Win2k8+ then you can use mklink.exe.  

That's the best way by far.. the only problem will be is if the application doesn't respect the links.  (I've seen it happen, and for those, you pretty much don't have a way around it.)  If that is the case, you could in theory add some monitoring scripts that move the files from the directory they get dropped in into the the directory you need.

Coralon
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 42

Expert Comment

by:kevinhsieh
ID: 39944317
It looks to me like the application originally uses one UNC path, and now you are using a new path including a new share name. As an aside, are you really sharing out the Program Files directory? that seems really weird and a poor security practice. At any rate, you can use DFS Namespace to redirect a share to any other share.

My suggestion is to stop sharing the original folder1, and create an entirely new folder structure and share it out like the original share, and then create a new link data and point it to
your new share.

Create \\csvr2\folder1\folder2\ as a DFS namespace,  then add a link to data and point to
\\csvr2\program files\new1\new2\new3\new4\data

I hope that this is clear.
Windows 2003 Standard can host only one standalone DFS namespace.
http://technet.microsoft.com/en-us/library/cc753448.aspx
0
 

Author Comment

by:mporcellana
ID: 40692647
The developer finally got back to us...since it's a webserver-based app, it was a matter of placing 3 empty files with .apsx extensions in the "old" directory, and editing the config on the new version to point to them.

All is working well now.
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 40692693
This is totally possible with DFS namespace, so the wrong answer was marked as correct. Fixing the application is better, but I wouldn't want someone to think that there is no solution when DFS namespace does work for this.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

615 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