I'd like my application to retrieve a list of directories, sub-directories, and files from a URL (URL has no index page). Is that possible? I've been searching, but all I can seem to find is how to list directories and such on a system drive.
I'm able to create a List(Of String) containing a local directory structure of a LOCAL folder. I'm wondering how I would go about getting this structure for a website, in order to get a listing of all files of a particular type (for example: all .html files)
Something along the lines of what Xenu does would be perfect, but I don't know how to get started. I was thinking of doing something with parsing out "/" of the URL, but then you'd need to know the "deepest" file that exists on the site.. which you won't know...
Is there a way to get a folder listing of each directory of a site without having FTP access or something? (I'm assuming no due to security risks)
My only other option would be to crawl all hyperlinks within the site, and storing all the "internal" ones, but I don't know how to set up that loop, or how to know when it has reached the "deepest" level.
Kinda like when you delete a remote folder from FileZilla, it will traverse all sub-diretories first and delete those files.
I'm creating a simple .NET console application where I want to save a file in a folder that's part of the root project, like so: SolutionName.ProjectNameTestData. I want to put test.xml into the TestData folder. However, when I go to save my XDocument, it saves it to SolutionName.ProjectNameinx86Debug Console est.xml.
I'm working on small project for my site... basicly we have over 600 memembers.. and every day new member registers as we can keep of track of all the new members we would like to do the following
By CLicking Button Importing members.php list in to our program so we can see all the new members that have registerd
This is good for our modirator so they can keep an eye out on new members
SO basicly
I click button and my program grabs my user list from my website and puts it in my list box ( but program will have to go to page 2 then 3 and so on and so on )
1 I have a list box that has url's in em now some of this sites I'm intrested in reading news so what I want is this
When I click button i want my program to check urls that I have inb my list box and if the website has word News I want that to show up in my program by eather 1. display News found in my url list box next to the url that has word news on site or 2. if it finds news for my progy to refresh the page and only leave me resaults that have words news on it's website so basicly it has to read 1 word from site if it finds that word I want it showing next to url or I want it for it to auto refresh my list box and only live me resaults that have words news in it
there anyway to retrieve the SSID of the network the pc's currently connected to or the list of available networks? I've googled for examples, but I only find vb.net 2005 examples that don't work in vb.net 2008
I'm trying to make a program that will list all the sub-directories in a directory then list all the files in a sub directory in another listbox when you select a directory from the first listbox, what I am stuck on is listing the folders.
Dim folderInfo As New IO.DirectoryInfo("c:windows") Dim arrFilesInFolder() As IO.FileInfo Dim fileInFolder As IO.FileInfo
[Code]....
This code lists all the files in a directory but not the folders, I want it to do the complete opposite.
I'm trying to get files from a directory and all the sub directory's to show in a checked list box. This is my first time working with arrays?here is the code
Public Class add_to_play_list 'IO.Directory.GetCurrentDirectory & "\x"' Dim Home As String Dim Fi As New ArrayList
[code]....
I have a sansa fuze and i have to make my own playlist for it so i want to have the program read the songs that are on there and show it to you in the list box and you can check off the ones you want then it will read the mp3 files to make the playlist, it needs the path, name, and duration from the mp3 file. i can get the name and the path so far...
I wanted to make a program where it will retrieve data from websites I use regularly and display important parts to me such as my horoscope, friends online, new emails etc. I'm just having a problem figuring out how to get visual basic to display the website information.
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
I need to create a VB.net app that automatically reads a html table. It should connect to a web address (eg "[URL]") and read it. I'll be happy if I could just get the full HTML. I was able to use this code to get the HTML of a regular website:
Dim strReply As String = "NULL" Dim objHttpRequest As HttpWebRequest Dim objHttpResponse As HttpWebResponse objHttpRequest = HttpWebRequest.Create("[URL]") objHttpResponse = objHttpRequest.GetResponse Dim objStrmReader As New StreamReader(objHttpResponse.GetResponseStream) strReply = objStrmReader.ReadToEnd()
This code sample will give me the HTML for the website [URL]. However it will not work with the website I want (eg "[URL]"), because when you access it via regular browser it will popup a browser dialog asking for credentials (user / pass). So when I run the code above for it, I'll get the exception: The remote server returned an error: (407) Proxy Authentication Required.
How do I set this up to use the credentials, before retrieving the HTML? This is actually my first web-related app.
I have a small market place in my website so I want to development a small app for retrieve and check data for example find a transaction or the email of a client and to show this data in a datagridview, this the the html code of a transaction :
I want to know that which folder or drive i'm in and my program will automatically write the status on the list box . i mean, i want to get the current status of the drive and directory of each visit.
I can already download one file at a time (as long as i know the file name) from my web server using :[code]But I want to be able to simply download everything in the url... is there any simple method for doing this in visual studio 2008 vb
I'm new to Visual Basic so im wondering if there could be made a program when it opens it connects to directory of my website and ouput the files, so you can see them, delete, download etc.
I am trying to retrieve the telephone number from Active Directory for my script, I found alot of examples online, and I tried to implement what I think should make sense (but since I really don't know vb that well, this is problematic).[code]...
I am trying to access my website and display the .mp3 files in a certain directory. Through this, i want to have windows media player play the selected file. Either through list box, or combo box. I have tried many different ways. How in the world am i supposed to do this? I do not just want to set the windows media player url to a certain file, like i said, i am trying to get to select the file (in some sort of dialog box) and play that.
I successfully retrieve a user (call it userA) from Active Directory that exists in Domain A in the users subdirectory. I then try to remove the user from AD by doing
dim theParent as DirectoryEntry = userA.Parent theParent.children.Remove(usera)
This fails because when I look at the parent node in a Watch Window in Visual Studio, all of its members say COMInterop.Exception.
I'd like to be able to get and set the different information for a user in Active Directory on Windows Server 2003 under Environment and Session tabs through a VB.Net application. I am familiar with System.DirectoryService but I can not find the correct attributes for these particular tabs. For example, I'd like to check "Connect Printer at logon" or set "Idle session limit".I've found the "ms-TS-Connect-Printer-Drives Attribute" and other attributes like it but they are only implemented on Server 2008.
I am currently using a recursive function to retrieve all the files/folders within a directory.Sometimes this takes a while. I am wondering if I am able to calculate the total number of files/folders within a directory before retrieving the filenames so that I can implement a progress bar?
Ive been trying to make a program that scans a website for the Forum directory mainly to learn about HttpWebRequest.I know that i need the url, and the request, so i set that up like this:
Dim Message As String = String.Empty Dim request As HttpWebRequest = DirectCast(HttpWebRequest.Create(Url), HttpWebRequest)
and i set the Credentials to DefaultCredentials Now, How would i scan the directories?
i've tried
for response as HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse) logBox.Text = logBox.Text & vbNewLine & response.ToString() next
but this has errors...Just trying to scan a site for multiple directories using HttpWebRequest.
What Im making is like a face book and tagged login from my app
1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com ) 2. I have a Form2 with webbrowser 3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1
All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason
I am trying to create a program which will read the files that exist in a directory, and then write in a text file the specific information (full file name, date created)i have found several code in the site but i cant make it work, the machine i am running the code is XP and i am using VB2008.The code i have found is the following: