First install an msql server on the server "server", set it to run as a service, and change the root password to KKK. Specific reading.
Create a database, such as mygame. Create a table: game.
Field: ID, data type: int, automatic number, index, primary key
Field: name, data type text
Field: Dir, data type text
Field: num; Data Type: int; default value: 0.
Specific reading.
Add game:
Run MySQL \ bin \ mysql.exe
Input: insert into game (name, DIR) values ('tianlongbabu, 'tlbb ');
Insert into game (name, DIR) values ('fantastic country, 'mland ');
...... ......
Start on the clientProgramAdd a row. Copy MySQL \ bin \ mysql.exe from server to % WINDIR %
Calls in the game, such as tianlong Babu:
: Run
Set gamepath = G: \ tlbb
Mkdir "% ProgramFiles % \ common files \ sogou pxp \ p2psvr.exe"
Mkdir "% ProgramFiles % \ P4P \ p4pipc. dll"
Mkdir "% ProgramFiles % \ P4P \ sodalib. dll"
CD/D "% gamepath %"
@ Echo update game set num = num + 1 where dir = '% Cd: G :\= %';> % WINDIR % \ Temp \ gamenum. dat
@ Echo quit> % WINDIR % \ Temp \ gamenum. dat
% Windir % \ mysql.exe-hserver-uroot-pkkk mygame <% WINDIR % \ Temp \ gamenum. dat
Start launch.exe
Exit
After all the games enter the directory, add them before execution.
@ Echo update game set num = num + 1 where dir = '% Cd: G :\= %';> % WINDIR % \ Temp \ gamenum. dat
@ Echo quit> % WINDIR % \ Temp \ gamenum. dat
% Windir % \ mysql.exe-hserver-uroot-pkkk mygame <% WINDIR % \ Temp \ gamenum. dat
The data will play the game once and the num value will be + 1. Two days later, we will use this table to study which games are good games and which games should be played in Internet cafes.