473,562 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

subdirectory of another

Is there a function to find out if directory B is a sub-directory under
directory A?

Thanks for your answer

Nov 29 '05 #1
1 1022
You can use the
DirectoryInfo.P arent to determine the parent of the directory.

Sayed Ibrahim Hashimi

"colson" wrote:
Is there a function to find out if directory B is a sub-directory under
directory A?

Thanks for your answer

Nov 29 '05 #2

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

Similar topics

1
1856
by: Fuzzyman | last post by:
I wish to restrict access to a program to certain directories. I also wish to prevent access to certain directories. What this means is that given a path, I need to work out if that path is in a certain directory... or in a subdirectory of that directory. (On a Linux server). The only way I can think of so far is to turn both paths into...
4
1896
by: Bill | last post by:
Will IIS6.0 recognize a global.asa file located in a subdirectory on the webserver? I'd like a file that will execute whenever a file in the subdirectory is browsed - or, at least it is executed the first time a file in the subdirectory is browsed. Thanks!
7
2767
by: SOW Olivier | last post by:
hi, i have a site wich is in a subdirectory of the webSite. I have to use a global.asa file to set session.timeOut even i create an IIS application on the subDirectory global.asa don't run ?!? if i create a virtual directory instead of IIS application, the global.asa run fine. How can i do to run global.asa on a subDirectory ?
4
5846
by: tomek | last post by:
hi i'm desperate... i'm trying this for 2 days now... so if anyone can help - please. i have upload form in which users can choose TYPE of file they are uploading (graphic/text/music) - and STATUS of that file (draft/finished). So, my upload script is getting: - $_FILE field, - TYPE of file (it is string representing "DIRECTORY") -...
2
1722
by: keith | last post by:
I created a subdirectory in a project and added an image to the subdirectory from the project and set its property Build Action=Embedded Resource. Then instanciate a image by Image img=new Bitmap(GetType(),"HLP.BMP"); I got runtime error and it said "System.ArgumentException: Resource 'HLP.BMP' could not be found in class...
6
3455
by: Dean Fields | last post by:
Hello, I am having some session problems wih an in-house (classic) asp application. My developers have not been able to figure it out. I am more of a systems admin type and much of this is over my head. But I will try to explain the best I can and tell you what I know so far. First a little summary of environment. I am running iis6 in a...
2
2129
by: John Nagle | last post by:
Some obscure import issues: I'm running Python 2.3.4 from a CGI script on a shared hosting Linux system. The CGI program is being executed from Apache, as "nobody". I have some local modules installed in "~myname/lib/python"; these include "MySQLdb" and "M2Crypto". Since this is running as "nobody", I append /home/myname/lib/python
0
1538
by: =?Utf-8?B?Qm9ubmll?= | last post by:
I have a basic ASP / Index Server search page. I have a web site contained in a subdirectory in the root of a main web site. What I’m trying to do is force the search page in the subdirectory, conduct its search ONLY in the subdirectory, and NOT display results from the parent/root. (Note: there is also a similar search page for the main...
0
1058
by: =?Utf-8?B?bW9iaWxlbW9iaWxl?= | last post by:
Hi all. I have experience with C#/VB.NET and ASP Classic, but am very new to ASP.NET. I'm using ASP.NET 2.0 and am modifying a site. I copied the site files to a subdirectory to test and (hopefully) not interfere with the live version. I am running a page in the subdirectory that should submit to itself:...
6
15196
by: coolestavi007 | last post by:
Hi, I have to create directories on the FTP server. I have tried directory.exists but it doesnt work.Any other way to create directory on the server.Please help me.
0
7655
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...
0
7577
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8101
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...
0
7935
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...
0
6221
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...
1
5477
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3623
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2073
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
0
903
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...

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.