本文整理自网络,侵删。
delphi中判断某个文件是否已经打开
if FileExists(FileName) then
if (FileOpen(FileName, fmShareExclusive) < 0) then
ShowMessage('文件已打开');
相关阅读 >>
Delphi listview 导出excel txt vcf 单元
Delphi gethomepath - 获取用户程序数据目录
Delphi winapi: setwindowtext - 设置窗口标题
Delphi与用windows 7下的用户账户控制(uac)机制
Delphi getforegroundwindow 与 getactivewindow 的区别
更多相关阅读请进入《Delphi》频道 >>