473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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

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

Nov 18 '05 #1
2 1141
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 21 '05 #2
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/
"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:ew**************@TK2MSFTNGP11.phx.gbl...
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tony Liu | last post by:
Hi, is it possible to create a virtual drive? For instance, let's say I want to create a virtual drive call "Z", and that drive should be visible in the My Computer folder and works like a...
1
by: Thomas D. | last post by:
Hello, Where to start? Well, I was creating a little back office for a website. That website is in fact a virtual directory in an existing website. So, I have this: -- WEBSITE1 |---- |----...
13
by: Thom Little | last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on...
1
by: neoairus | last post by:
I'm developing a pseudo-library for neural network. To simplify librarary using i wont to implement a sistem to instantiate different implementation of interface(Layer.h Neuron.h) passing a string...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.