AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Check URLs / Hyperlinks /file existence

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
snoopy0815



Joined: 29 Jul 2005
Posts: 3

PostPosted: Fri Jul 29, 2005 9:40 am    Post subject: Check URLs / Hyperlinks /file existence Reply with quote

Hi,

is it possible to check a list of links by autohotkey?
For example a link-list in a file:

links.txt:
http://www.google.de
http://www.gooogle.xx
\\lrnt17\testshare\
\\lrnt15\testshare\test.doc

how can i check all these links automatically for correctness?
any ideas welcome!

best regards, j:)rgen.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Fri Jul 29, 2005 9:48 am    Post subject: Reply with quote

http://www.google.de
http://www.gooogle.xx ping ?

\\lrnt17\testshare\ netview ??
\\lrnt15\testshare\test.doc URLDownloadToFile ???
Back to top
snoopy0815



Joined: 29 Jul 2005
Posts: 3

PostPosted: Fri Jul 29, 2005 2:21 pm    Post subject: Reply with quote

[quote="BoBo"]http://www.google.de
http://www.gooogle.xx [color=red]ping ?[/color]

\\lrnt17\testshare\ [color=red]netview ??[/color]
\\lrnt15\testshare\test.doc [color=red]URLDownloadToFile ???[/color][/quote]

Hi BoBo,

thanx for your suggestions - but I know, how to test the existence manually...
My intention is to check a lot of htm-documents which have lots of link of the abouve mentioned type AUTOMATICALLY by a script and to generate AUTOMATICALLY a list of all links, which direct to a not existing file, share or url...

any help is welcome...

best regards, j:)rgen.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Fri Jul 29, 2005 3:31 pm    Post subject: Reply with quote

So you know that this isn't really a manual process (unless you wanna torture yourself by doin it a 1000 times manualy):
Code:
Loop, 1000
{
   Run, cmd /c ping http://www.gooogle.xx > pingRes%A_Index%.txt | notepad pingRes%A_Index%.txt,,Hide
}
... but you're not happy with the result, its not automated enough ? Confused
Back to top
snoopy0815



Joined: 29 Jul 2005
Posts: 3

PostPosted: Tue Aug 02, 2005 8:36 am    Post subject: Reply with quote

ok, I see...
also this is not the first way for a solution which I expected - it gives me a good starting point. All I have to do is a "little" parsing of the generated text file Smile

thanx for the hint - I think it will solve my problem Smile)

best regards, j:)rgen.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Aug 03, 2005 12:32 am    Post subject: Reply with quote

To extract all the links from an HTML file, here is a small script I wrote a while back. It has not been heavily tested, so corrections are welcome:

http://www.autohotkey.com/forum/viewtopic.php?p=7082#7082
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group