A method for executing computer programs in accordance with a preset
priority is provided. The method is applicable to a computer system
connecting to a data storage, a plurality of device selection buttons,
and a plurality of multimedia players. The data storage is installed with
a plurality of device drivers, a plurality of device application
programs, and a program execution priority table. The program execution
priority table defines correspondence between the device selection
buttons and the multimedia players, and the priority order of execution
of the device drivers and the device application programs of the
multimedia players. When the computer detects any device selection button
is pressed, the computer executes the device drivers and the device
application programs corresponding the multimedia player in the priority
order defined by the program execution priority table.