1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Changing default "Open With" to custom VB .exe

Discussion in 'Software Development' started by CJMiner, Nov 1, 2007.

Thread Status:
Not open for further replies.
  1. CJMiner

    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?
     
  2. CJMiner

    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?
     
  3. cwwozniak

    cwwozniak Trusted Advisor Spam Fighter

    Joined:
    Nov 28, 2005
    Messages:
    64,127
    First Name:
    Chuck
    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.
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/646539

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice