473,765 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP IIS 5.0 Mapping an FTP share to the physical directory

Hoping someone can help.

I've setup several FTP shares on IIS 5, where some of the shares are
located on another computer, while other directories are on the local
computer.

Is there a function similar to server.mappath that I can use to return
the physical path of a FTP virtual directory using ASP?

For example, I have a virtual directory called TestA located at
C:\TestA on the local computer running IIS 5. I have another virtual
directory called TestB located at \\Devserver\Tes tB where Devserver is
another machine on the network.

In my ASP code, I need to be able to access the physical directories
directly and I would like to avoid having additional code to deal with
hard coded directory paths.

Is there something similar to the command server.mappath( "TestB") which
would return "\\Devserver\Te stB"? This way, the physical path is
transparent and I can treat local and network shares in the same way.

Many thanks,
Jimmy.

Jul 22 '05 #1
0 1481

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

Similar topics

15
3887
by: scmiles | last post by:
I am trying to write an asp or aspx page that will create a virtual ftp directory to the users Active Directory home directory. That way a user can interact (drag/drop, copy/paste) via IE with folder view for ftp sites. I have some code, that seems to be "flaky" it works for me and some others, but not everyone. I really need to get a stable version. My asp code is below. Having it in ASP is fine, but it would be a bonus to have a ...
8
5188
by: Leo R | last post by:
Hi, Is it possible to create a network-drive at the SYSTEM-level? E.g.: map X: to \\server1\share so a windows service can reach X: without having to log on? I want a Windows .NET service to collect files from a UNIX-share (mapped to X:) that is exposed to windows using Hummingbird-software. Leo.
2
2301
by: JJA | last post by:
I have 2 web servers both running win server 2003 with iis 6.0. On my PROD server I have a virtual directory called CONV. It points to a folder on the C drive of this PROD server. On my TEST server, I defined a virtual directory called CONV. It points to a share called \\prodservername\CONV. Note that the share name is the same name as that of the virtual directory. Using IIS on the TEST server, I can navigate to this CONV virtual...
24
7667
by: Hardy | last post by:
I'm pretty new in this field. when reading some 70x material, I met with this term but cannot catch its accurate meaning. who can help me? thanks in advance:)~
4
5906
by: Scott Nicholson | last post by:
I've got a site set up that uses a network share as it's home directory. Simple stuff is working fine. When I try to put a database in there, though, I run into problems. I'm using: dim dbconn,sql,dbcomm dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & server.mappath("test.mdb") & ";")
1
2016
by: MattM | last post by:
Looking at a tutorial for Asp.Net 2.0 using Northwind, the DAL was built by dragging the tables on to an XSN to create a dataTable object for each table in the database. The BLL was then mapped for each entity but since the data was simple it mapped to a physical table (ex. customer). But what do you do if your tables don't match up the physical and logical? For example, you could have a table for people, a table for job codes, and a...
9
4296
by: moondaddy | last post by:
I'm using asp.net 2.0 and c# and would like to share some user control between several websites. these websites are on the same server and have a physical location right next to each other like this: D:\Websites\Website1 D:\Websites\Website2 I'm thinking of putting the controls for sharing in a common directory like this: D:\Websites\CommonControls
13
7079
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I am actually trying to get the UNC path of the main module of a process running from a mapped drive, and I am trying to do this from a service. The ProcessModule class only provides the full path with the mapped drive letter, but the drive letter refers to the drive mapping for the user that started the process, and cannot be resolved to a UNC path from a service running under LocalSystem. Presumably, therefore, I need to get the drive...
2
2285
by: RN1 | last post by:
Can more than one application (on the same server) share the same Global.asa file? If not, then why? Thanks, Ron
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.