• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Command line question

sabka

Senior member
How do I get windows to open up a .mpg file with the default mpg player from the command line?

I tried "play blabla.mpg", "open blabla.mpg" and I can't think of anything else.

I'm creating a program that would open the default media player and play the file. What woudl the corresponding command line be?

Thanks
 
In Windows 2000 you merely type the filename, and the associated program will open it.

C:\> aybabtu.mpg

Would open it up using whatever program. I don't really feel like booting into 98 to check 9X compatiblity. A better option would probably be ShellExecute'ing mplayer or mplayer2 + the filename.

The best option would be to use the native association methods that Win32 has.
 
Back
Top