[PROBLEM] File Associations
How do i set my VB program to open all '*.mpgh' file. how do i do that, also i was to know when the application is opening the file, how do i set the application to do the task and not to just Start Normally.
(any problems understanding? i can give an example (i just give it now) )
EXAMPLE:
When I open an '.HTML' file Google chrome opens it and go directly to the site. When i open Google chrome it doesn't go to the site by default.
Thanks in advance,
Topblast
What exactly do you want to happen upon opening a .mpgh file?
Also, to grab them all:
[php]
For Each filePath As String In FileIO.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchAllSubDirectories, "*.mpgh")
MsgBox(filePath) '... do whatever with the file location now.
Next
[/php]
You can change the drivename I listed to a more specific start location such as "C:\Users\name\Documents" etc.
But, if you start at C:\ there might be some files you can't touch and get exceptions, I'll write a LINQ equivalent later which will hopefully fix it up.