Computing.Net > Forums > Programming > VB6 - including files

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB6 - including files

Reply to Message Icon

Original Message
Name: eaw8806
Date: February 18, 2003 at 15:46:30 Pacific
Subject: VB6 - including files
OS: win98
CPU/Ram: pentiumII/128MB
Comment:

i already know how to make an exe program open when you open a certin file type...like a .mp3 or something...add it to registry. but i cant make it look what file it was opened with. any help? trying to make my media player my default media player...but it doesnt find the file that it was opened under.


Report Offensive Message For Removal


Response Number 1
Name: Mud
Date: February 18, 2003 at 16:53:10 Pacific
Reply: (edit)

In your form_load, you'll want to deal with the keyword "Command". When your program is loaded by opening the associated file, Command will contain the path to the file. The path will be in quotes, so you'll have to strip them first and then put the path into a new variable... ie:

strFilePath=Mid(Command,2,Len(Command)-2)



Report Offensive Follow Up For Removal

Response Number 2
Name: eaw8806
Date: February 18, 2003 at 18:38:39 Pacific
Reply: (edit)

thanks mud, that helped a lot.


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software