S
sxflmandy
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大侠们:<br>我在控制台程序中的脚本,在XP中运行正常,把程序移到没有DEPHI环境的2000机器中就报错:"application failed to initialize property ..."<br>请大侠们帮助。<br><br> tmp := 'cmd /c copy ' + SourceFile + ' ' + DestFile;<br> CreateProcess(nil,PChar(tmp),nil,nil,False,NORMAL_PRIORITY_CLASS,nil,nil,StartupInfo,ProcessInfo);<br> WaitforSingleObject(ProcessInfo.hProcess,INFINITE);<br> GetExitCodeProcess(ProcessInfo.hProcess,Result);