Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9130963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:03:37+00:00 2026-06-17T08:03:37+00:00

i want my program to ask user Do u want to set .mp3 file

  • 0

i want my program to ask user “Do u want to set .mp3 file type always default open by this program?” (for first time only) any example to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:03:38+00:00Added an answer on June 17, 2026 at 8:03 am

    First, you will need to familiarize yourself with the Windows Registry.

    Associations between programs and extensions are handled inside the HKEY_CLASSES_ROOT key.
    Each extension appears as a sub-key.

    As each key’s default value you will find the associated key that handles most of the operations, currently supported, for that particular file type.

    For example, you might find the .mp3’s default value is set to “WMP11.AssocFile.MP3” or perhaps it set to “VLC.mp3”, if you have installed VLC and configured it as the default MP3 player.
    So, now you need to locate that key, again, inside HKEY_CLASSES_ROOT.

    Although this may vary, you should find that “VLC.mp3” (or whatever key was associated with the .mp3 extension) has a sub-key called “shell”.
    Under “shell” you will find another sub-key called “Open”.
    And, finally, under “Open” you will another sub-key called “Command”.

    The “Command” key is the one containing the information used by Windows (and other programs) to open/start whatever application is currently associated with the “.mp3” (or any other) extension.

    Once you understand and feel comfortable with the way associations are handled in the Registry, you should then use .NET’s Microsoft.Win32‘s Registry class to navigate and query the required keys and their values.

    Here’s a very basic illustration of how the code would look like:

    Dim mp3 = Registry.ClassesRoot.OpenSubKey(".mp3")
    Dim associatedValue = mp3.GetValue("")
    Dim associatedKey = Registry.ClassesRoot.OpenSubKey(associatedValue)
    Dim defaultProgram = associatedKey.OpenSubKey("Shell\Open\Command").GetValue("")
    
    MsgBox("MP3 Files Are Opened Using: " + vbCrLf + defaultProgram)
    

    Hope this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want my C program to ask the user to type the name of
This program works well but I want to make this program tell the user
In my lua program, i want to stop and ask user for confirmation before
/*This program will ask a user to enter a song list. By doing this
I want to make a program in C which will ask the user to
I've built this program to read a user name from a file. It checks
I am very new to Java Me (first time). I want my program to
I want my program to ask a value of n. After user inputs the
I don't know how to code this but i want program to skip or
I want a program that runs continually and monitors the time constantly. When it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.