var
path:string;
begin
Path := ExtractFilePath(paramstr(0))+ '/Log/Operate';
if not DirectoryExists(Path) then
begin
Try
ForceDirectories(Path);
Except
Exit;
End;
end;
{path := path + '/'+DateToStr(Now)+'.txt';
Info := '**********************************************'+ Char(13) +chr(10)
+'操作时间:' + char(vk_tab) + DateTimeToStr(now) + Char(13) +chr(10)
+'操作信息:' + char(vk_tab) + Info + Char(13) +chr(10);
Assign(LogFile,path);
Try
Append(LogFile);
WriteLn(LogFile,info);
CloseFile(LogFile);
Except
ReWrite(LogFile);
WriteLn(LogFile,info);
CloseFile(LogFile);
End;
Result := 'OK'; }
end;