Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

UNC path redirect to different UNC path

Posted on 2014-03-19
6
Medium Priority
?
1,121 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 2000 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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

670 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