社区
Delphi
帖子详情
如何删掉opendialog打开目录下的文件?
hymnfish
2005-01-20 11:46:26
现用opendialog打开某个目录,例如我指定了该目录已经存在的123.xxx文件
如何删掉它~求教
...全文
70
6
打赏
收藏
如何删掉opendialog打开目录下的文件?
现用opendialog打开某个目录,例如我指定了该目录已经存在的123.xxx文件 如何删掉它~求教
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hymnfish
2005-01-20
打赏
举报
回复
谢谢各位
才子鸣
2005-01-20
打赏
举报
回复
上面的,都对
UP
pilicat
2005-01-20
打赏
举报
回复
if FileExists(OpenDialog1.FileName) then
if DeleteFile (OpenDialog1.FileName) then
ShowMessage('文件:“'+OpenDialog1.FileName+'”删除成功!')
else
ShowMessage('删除文件:“'+OpenDialog1.FileName+'”失败!');
Sorder
2005-01-20
打赏
举报
回复
if fileexists(opendialog1.fileName) then
DeleteFile (opendialog1.fileName);
qiujsh
2005-01-20
打赏
举报
回复
DeleteFile ( PChar(opendialog1.fileName) );
syl79
2005-01-20
打赏
举报
回复
uses Windows;
...
DeleteFile (opendialog1.fileName);
Delphi扩展的
文件
目录
操作函数
{*
打开
文件
属性窗口} function
Open
Dialog
(var FileName: string; Title: string; Filter: string; Ext: string): Boolean; {*
打开
文件
框} function FormatPath(APath: string; Width: Integer): string; {* ...
delphi通用函数单元一
{*
打开
文件
属性窗口} function CreatePath(path : string) : Boolean; function
Open
Dialog
(var FileName: string; Title: string; Filter: string; Ext: string): Boolean; {*
打开
文件
框} function ...
C#对
文件
的操作(
打开
、保存、复制、移动、删除)
this.
open
File
Dialog
1.Title = "
打开
文件
"; //设置默认路径 this.
open
File
Dialog
1.InitialDirectory = "d:\\"; //设置
文件
类型 this.
open
File
Dialog
1.Filter = "心语
文件
*.dxl|*.dxl|文本
文件
*.txt|*.txt|所有...
Delphi 实现最近
打开
文件
记录菜单
从
打开
文件
对话框
打开
文件
procedure TFrmMain.
open
Click(Sender: TObject); begin if
Open
Dialog
1.Execute then begin
Open
File(
Open
Dialog
1.FileName); RecentMenu.Visible: = true; end ; end ...
Delphi获取android
文件
路径,delphi xe10
文件
目录
/路径操作 (Andorid、ios)
获取临时
文件
路径(支持安卓、IOS)function GeFileName(const AFileName: string): string;begin{$IFDEF ANDROID}Result := TPath.GetTempPath + ‘/‘ + AFileName;{$ELSE}{$IFDEF IOS}Result := TPath.GetHomePath ...
Delphi
5,386
社区成员
262,729
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章