There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display drive driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop lcd malware monitor network networking nvidia outlook outlook 2003 outlook express partition printer problem problems router slow sound startup trojan usb virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Changing default "Open With" to custom VB .exe


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
CJMiner's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Nov 2007
Experience: Intermediate
01-Nov-2007, 05:58 PM #1
Changing default "Open With" to custom VB .exe
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?

Last edited by CJMiner : 02-Nov-2007 09:17 AM.
CJMiner's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Nov 2007
Experience: Intermediate
02-Nov-2007, 09:18 AM #2
Bump.

Aynone have any idea why windows won't let a non Windows Media Player program open a WMV internet link?
cwwozniak's Avatar
Distinguished Member with 8,291 posts.
 
Join Date: Nov 2005
Location: McHenry, IL - USA
Experience: Enough to be dangerous
02-Nov-2007, 10:56 AM #3
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.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:54 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.