Changing default "Open With" to custom VB .exe

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

CJMiner

Thread Starter
Joined
Nov 1, 2007
Messages
2
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?
 

CJMiner

Thread Starter
Joined
Nov 1, 2007
Messages
2
Bump.

Aynone have any idea why windows won't let a non Windows Media Player program open a WMV internet link?
 

cwwozniak

Chuck
Moderator
Joined
Nov 28, 2005
Messages
68,450
You may want to click the red triangle above you first post and ask a moderator to move this thread to the development forum. You may have a better chance of having the right person look at it there.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top