S sunylat Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-30 #1 您好: 请问如何使用winexec调用Ini文件的值,执行指定的程序?
S sunylat Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-30 #3 您好: 我把想执行的程序写入INI文件中,随时调取,用WINEXEC执行先前写入INI文件的程序!
Z zhukewen Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-30 #4 var s:string;ini:TIniFile; begin ini := TIniFile.Create('myFileName'); s := ini.ReadString('autorun','exefile',''); ini.Free; winexec(Pchar(s),sw_show); end;
var s:string;ini:TIniFile; begin ini := TIniFile.Create('myFileName'); s := ini.ReadString('autorun','exefile',''); ini.Free; winexec(Pchar(s),sw_show); end;