I made an app recently that I'm proud of. It's an alarm that plays music at a designated time. I use the Windows Command Prompt to play the .mp3 file. I'm using C, so I've been trying to use the system()
method. However, I've realized that this won't work on computers that have Windows 11, as they got rid of Windows Media Player being installed with Win11. I also have Win11, but it worked on my computer because I installed it.
Win11's media player is called "Media Player," and I can't find a way to play mp3 files through the command line with it. I've tried "fmedia," "wmplayer," "start," and others but none of them work.
So how can I play an mp3 file on Windows 11 using the Command Prompt without installing extra software?