Vbscript to validate a streaming URL

  • Thread starter Thread starter Ducati
  • Start date Start date
D

Ducati

I am not sure I am in the right group, but I could not find one for VBscript.

I am trying to create a VBS that can validate if a stream is available
online. I know how to test if a URL is valid with something like that:

Set Shell = CreateObject( "WScript.Shell" )
dim strURL
strURL = "http://www.msn.com/"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
objHTTP.open "HEAD", strURL, false
objHTTP.send
Wscript.Echo(objHTTP.Status)

But the URL for the stream I need to validate is in the following form:
mms://................/file.wmv

If I try the above script on such a url, it returns a syntax error

Any idea on what procedure I could use to validate if such a streaming url
is valid (if the file exists)?

Thanks
 
I am not sure I am in the right group, but I could not find one for VBscript.
I don't have an answer to your question, but here's
the group you want:

microsoft.public.scripting.vbscript

Also, when you repost you should post the code
you're actually using. You're not using WScript.Shell
in your snippet, so I'm guessing that what you
posted is not the actual code that's failing, which makes
it hard for anyone to help you.
 
Thanks

mayayana said:
I don't have an answer to your question, but here's
the group you want:

microsoft.public.scripting.vbscript

Also, when you repost you should post the code
you're actually using. You're not using WScript.Shell
in your snippet, so I'm guessing that what you
posted is not the actual code that's failing, which makes
it hard for anyone to help you.



.
 
Back
Top