Could someone give me some idea how to create a virtual sharefolder or driver?

  • Thread starter Thread starter davidw
  • Start date Start date
D

davidw

Hi,

I have some files stored in one of my servers, they all don't have suffix,
they can be accessed with path like \\share1\1010\1010178 , 101078 is file
name, but in some case ,I need access them with a suffix, like 1010178.txt,
I am thinking creating a virtual folder somewhere, so when user access
\\share2\1010\1010178.txt I can read out the real file and send back, is it
possible? ASP.NET provide virtualpathprovider, but that is for HTTP, I want
a local network share.

thanks
 
Hello David,
I have some files stored in one of my servers, they all don't have
suffix,
they can be accessed with path like \\share1\1010\1010178 , 101078 is file
name, but in some case ,I need access them with a suffix, like
1010178.txt,
I am thinking creating a virtual folder somewhere, so when user access
\\share2\1010\1010178.txt

Umm, I'm not exactly sure if I understood you correctly. Could you please
elaborate a bit?

In any case, there's no easy way to redirect UNC shares from A to B, unless
your application can process the UNC paths before the files get accessed.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
Yes, I know I need handle the filename logic. I just want to know if it is
easy and if there is a piece of code I can reference. I had used a few
software that will register a virtual driver on my machine, I think I need
do the same thing.

thanks/
 
Back
Top