|
const
cGUID = '4B666B997C49446688B339B6D944AA5B';
begin
if not FileSys.FileSystem.FileExists(TRTLConsts.DocRoot) then //TRTLConsts在协同常量库
try
FileSys.FileSystem.CreateFile(TRTLConsts.DocRoot, cGUID, [], TFileKind..fkSpace, TRTLConsts.DocDisplayName);
except
on E: TObject do
raise Exception.CreateFmt('知识中心基础数据错误,初始化失败。'#13#10 + '错误原因:%s', [jsCommon.ExceptText(E)]);
else
raise;
end;
end;
这段代码 我在不同的两台机器上一台能通过,而另一台提出错误(图如下) 不知道什么原因,
老大们能帮我详细解释一下上面代码吗?
|
|