Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming
Register Blogs Search Today's Posts Mark Forums Read

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-2009, 11:00 AM
Newbie
 
Join Date: May 2009
Posts: 3
rollerdyke44 is an unknown quantity at this point
Browse and check Links

First of all, i want to thank all those who have helped other people.


Here is my problem. I am making a program which will check links. The HTML code for the link checker is

HTML Code:
<HTML>
<head>
<title>Rapidshare Link Checker </title>
<style>
body 
{
	background:black;
}

TABLE
{
	font-size: 8pt;
	font-family: Verdana, tahoma, sans-serif;
}

.butt
{
    BORDER-BOTTOM: black 1px solid;
    BORDER-LEFT: black 1px solid;
    BORDER-RIGHT: black 1px solid;
    BORDER-TOP: black 1px solid;
    CURSOR: hand	;
    FONT-FAMILY: tahoma,sans-serif;
    FONT-SIZE: 13px;
	FONT-weighT: BOLD;
	TEXT-DECORATION: none;
    WIDTH: 100px
}
.textarea
{
	COLOR: black;
    FONT: 8pt Verdana,Arial,Helvetica,Sans Serif;
}
p
{
	COLOR: gray;
    FONT: 8pt Verdana,Arial,Helvetica,Sans Serif;
    TEXT-DECORATION: none
}
h1
{
	COLOR: gray;
    FONT: 14pt Verdana,Arial,Helvetica,Sans Serif;
}

</style>
</head>
<BODY>
<center>
<form action="h**p://rapidshare.com/cgi-bin/checkfiles.cgi" method="post">
<h1>Rapidshare Link Checker </h1>
<br>
<table >
	<tr>
		<td align="center">
			<b>Enter only rapidshare links in the below Text field</b>
		</td>
	</tr>
	<tr>
		<td>
			<textarea name="urls" rows="10" cols="100" class="textarea">
			</textarea>
		</td>
	</tr>
</table>
<center><input type="submit" class="butt" value="Check Links"/></center>
<pre>
<p>
Rapidshare searches for the file ids on all RS Servers, if it finds the files on any of the server u will get a file found 
information regarding the server on which the file located. This will be highlighted with green font at the bottom of the page.
If  it doesnt find the files on any server i.e. if the links are dead then u will get a file not found information with Red font
</p>
<pre>
<br><br>
</form>
</font>
</BODY>
</HTML>
(the direct link of the link checker page is
h**p://rapidshare.com/checkfiles.html


Now, what I want to do is that when I open a list of text files (with links) then the program checks those links and replies with either they are working or not. Here is the code to open the text file (of links)

Code:
Public Class form1


    Private Sub btnbrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnbrowse.Click
        Dim dialog1 As New OpenFileDialog
        Dim resource1 As DialogResult
        Dim index As ListViewItem
        resource1 = browse.ShowDialog()
        If resource1 = DialogResult.OK Then
            txtfile.Text = browse.FileName
            GetFile(txtfile.Text)
           
        End If
    End Sub
Using the above code I am able to get a list of links from a text file. Now what I want to do is, that the progam checks those links and gives the output if they still work or not.


And is it possible without using the web borwser??

Thanks!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -5. The time now is 06:51 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0