Try to get results from mame64.exe like the -listfull or the -createconfig but in the first ShellExecute command i get result in the second i get nothing
I use this code
begin
vDir:= 'C:\Emu\Mame\Mame64.exe';
vDir2:= 'C:\Emu\Mame\gamelist.txt';
ShellExecute(0, nil, 'cmd.exe',PChar('/C '+ vDir +' -listfull > '+ vDir2),nil, SW_HIDE);
sleep(1000);
ShellExecute(0, nil, 'cmd.exe',PChar('/C '+ vDir +' -createconfig'),nil, SW_HIDE);
sleep(1000);
end;
I can't understand where i have wrong...