Vbscript to validate a streaming URL

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
 
M

mayayana

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.
 
D

Ducati

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.



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top