Create a link to another folder

  • Thread starter Thread starter JR
  • Start date Start date
J

JR

I have a program that is hard coded to look at:
- c:\app\section1
- c:\app\section2

for file content. In both of these folders can be numerous files and
folders, perhaps thousands. There is specific content that goes in
each. Now in the infinite wisdom of the person using the program,
they failed to follow their training and stuck everything in
section1. Without getting into the details, without copying 2 GB of
files and folders into both folders duplicating the content so the
program will find what it needs, is there a way in DOS or XP to point
the section2 folder to section1? Not sure if a subst would work. The
application, if you want to call it that, is Excel using VBA code.

Thanks.

JR
 
JR said:
I have a program that is hard coded to look at:
- c:\app\section1
- c:\app\section2

for file content. In both of these folders can be numerous files and
folders, perhaps thousands. There is specific content that goes in
each. Now in the infinite wisdom of the person using the program,
they failed to follow their training and stuck everything in
section1. Without getting into the details, without copying 2 GB of
files and folders into both folders duplicating the content so the
program will find what it needs, is there a way in DOS or XP to point
the section2 folder to section1? Not sure if a subst would work. The
application, if you want to call it that, is Excel using VBA code.

Thanks.

JR

I suspect that you cannot do this under Windows. But why don't
you just move all files from "section1" to "section2"? "Move" is
very fast and does not depend on the size of each file. And if the
users keep putting the files into the wrong folder then you can
schedule a batch file to run every five minutes to perform the move
for you.
 
If your drive is an NTFS one -- you can use the utility "Junction" by
Mark Russinovich,
http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx

Move all the files from c:\app\section2 to c:\app\section1 folder,
delete c:\app\section2 folder, and execute the command (Start -- Run...,
press "Browse" button, find and select Junction.exe here -- in the
folder -- say, c:\Store_Folder -- you put it):

c:\Store_Folder\junction.exe c:\app\section2 c:\app\section1

The symbolic link (faked folder) c:\app\section2 will be created --
which points actually to c:\app\section1.

The content of both c:\app\section1 and c:\app\section1 folders will
always be the same -- doesn't matter in which of them your application
saves or deletes its file(s).

--
Mikhail Zhilin
MS MVP (Windows - Shell/User)
http://www.aha.ru/~mwz
Sorry, no technical support by e-mail.
Please reply to the newsgroups only.
======
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top