943,934 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2026
  • VB.NET RSS
Nov 1st, 2007
0

Opening WMV from internet link with VB exe

Expand Post »
Here's what I'm trying to do: I want the program I'm developing to be the default program for WMV files, whether launched from the hard drive or streamed from a site.

When activated, my program takes the command line arguments

Dim param As String = Command()

And uses that parameter to activate its video player.

I changed the default action for the WMV file type, for both Open and Play, to: "C:\myprogram.exe" "%L"

This works fine whenever I double click a WMV on the hard drive. The trouble comes when I click on a link to a WMV file, for example www.mypage.com/video.wmv

Instead of opening the file with my program, Windows opens a save file dialog, with an error message at the bottom saying "The file you are opening cannot be opened by the default program. It is either corrupted, or has an incorrect file type." My program is never even activated (I put in extra error catching and message boxes to be certain of this.)

Does a link to a WMV send different parameters than one on the hard drive? Or is there a compatibility issue with the code line I used?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CMiner is offline Offline
1 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: can someone tell m whats the error!!!!
Next Thread in VB.NET Forum Timeline: Tree View





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC