| | |
Opening WMV from internet link with VB exe
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 0
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?
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
- HELP my PC is running realy realy slow!!!! (Viruses, Spyware and other Nasties)
- Cant open anything that requires a new window help plsss (Viruses, Spyware and other Nasties)
- XP SP2 Freezing upon opening new explorer/Internet excplorer windows (Viruses, Spyware and other Nasties)
- IE will not start (Viruses, Spyware and other Nasties)
- False History on Internet Explorer (Viruses, Spyware and other Nasties)
- How to link an .exe file from a button in VB (Visual Basic 4 / 5 / 6)
- XP SP2 Freezing upon opening new explorer/Internet excplorer windows (Viruses, Spyware and other Nasties)
- 2 major problems with IE (Web Browsers)
- Error Linking KeyLogger.exe (C++)
Other Threads in the VB.NET Forum
- Previous Thread: can someone tell m whats the error!!!!
- Next Thread: Tree View
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist eclipse excel fade file-dialog filter forms ftp generatetags gridview html images input insert intel internet listview mobile monitor net objects open output panel passingparameters pdf picturebox port position print printing problem read remove save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





