1.判断文件是否存在

FileExist(FileName:string)

2.删除文件

DeleteFile(FileName:string)

3.判断当前系统是否隐藏文件后缀名

// 返回:0是显示文件扩展名 1是隐藏文件扩展名
function HideFileName:Integer;
var
  FileExt:TRegistry;
  ExtInt:Integer;
begin
   fileExt:=TRegistry.Create;
   FileExt.RootKey:=HKEY_CURRENT_USER;
   FileExt.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced',true);
   ExtInt:=FileExt.ReadInteger('HideFileExt');
   result:=ExtInt;
end;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案