473,513 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listing directories of a domain

Hi,
I'd like to know whether it is possible to know the sub-directories
and also files of a domain, especially domains. Does system.net
provides such a function?

For example: you only know www.xyz.com but xyz.com has sub directories
such as xyz.com/abc or xyz.com/abc/123, that's why it would be nice to
know the directories "abc" and "123".

Thanks!
Feb 17 '08 #1
3 986
That largely depends on the web server, whether directory listings are
enabled for the authorized (or anonymous) user.

On Sun, 17 Feb 2008 04:30:53 -0800 (PST), kimiraikkonen
<ki*************@gmail.comwrote:
>Hi,
I'd like to know whether it is possible to know the sub-directories
and also files of a domain, especially domains. Does system.net
provides such a function?

For example: you only know www.xyz.com but xyz.com has sub directories
such as xyz.com/abc or xyz.com/abc/123, that's why it would be nice to
know the directories "abc" and "123".

Thanks!
Feb 17 '08 #2
On Feb 17, 3:02 pm, Grok wrote:
That largely depends on the web server, whether directory listings are
enabled for the authorized (or anonymous) user.

On Sun, 17 Feb 2008 04:30:53 -0800 (PST), kimiraikkonen

<kimiraikkone...@gmail.comwrote:
Hi,
I'd like to know whether it is possible to know the sub-directories
and also files of a domain, especially domains. Does system.net
provides such a function?
For example: you only knowwww.xyz.combut xyz.com has sub directories
such as xyz.com/abc or xyz.com/abc/123, that's why it would be nice to
know the directories "abc" and "123".
Thanks!
If server allows that feature, how to get directory listing info under
VB.NET project?
Feb 17 '08 #3

"kimiraikkonen" <ki*************@gmail.comkirjoitti viestissä
news:f6**********************************@c33g2000 hsd.googlegroups.com...
If server allows that feature, how to get directory listing info under
VB.NET project?
I think there is no easy solution for this. The only way might be just parse
html-files showing directories and files that are shown with browser.

If you can't see directory listings you can't get them. It would be a big
security risk to let people see directory structures.

-Teemu

Feb 17 '08 #4

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

Similar topics

3
1825
by: Jason | last post by:
I need to get a listing of users from Active Directory. Getting the list is no problem using the DirectorySearcher class. My problem is getting the full legacy-style domain name of the user (in the form of domain\username). The "sAMAccountName" property only gives me the username portion. What property gives with the domain? Or do I need to be...
19
3290
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing = os.listdir(directory)
4
1929
by: Jonny | last post by:
I'm sure this is easy and i'll kick myself for it. How would i go about listing all the machines on a domain? I want to display them in a list box. Thanks /Jonny
3
2690
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include directories contain a file named "cppfile1.h". In my main project I #include "cppfile1.h". I rely on the order of paths in additional include...
1
1351
by: Sam Marrocco | last post by:
Is there a listing of the variables that can be used in vb.net installer default directories? For example: // uses three of these variables. I'd like to have a listing of any others I might be able to use, including any that might use the version number of the target application. --
8
11056
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir) index.html site/pagefile/
2
1689
by: ngr | last post by:
I used to use the DirListox control in VB6 but this is no longer supported in VB.NET. What I want to do: I want to take a directory listing and show any subdirectories in a list. When you click on a directory in the list another list appears with the directory listing of files and directories within it. Can anyone please advise how to...
0
1597
by: djmc | last post by:
Hi, I am having problems with virtual directories and web.config inheritance. I have read the section titled "Conflicts between settings on virtual and physical directories" at http://msdn2.microsoft.com/en-us/library/ms178685.aspx I have a web application running with the properties: http://www.domain.com/ c:\domain\
4
3235
by: techusky | last post by:
I have a *very* simple script written that displays the directory listing of the current working directory, but I am having some difficulty when I try to change folders. Basically, I have my $dir variable set to this: --- $dir = getcwd() . "\\" . $nav; --- but for some reason the script does not actually display the contents of the directory...
0
7178
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
7397
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. ...
0
7565
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...
1
7128
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5704
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...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
473
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.