如何把文件从计算机上删除(一次性的删除,不是删到回收站中)(100分)

  • 主题发起人 主题发起人 laile
  • 开始时间 开始时间
L

laile

Unregistered / Unconfirmed
GUEST, unregistred user!
如何把文件从计算机上删除(一次性的删除,不是删到回收站中)
 
DeleteFile(FileName);
 
SHFileOperation
 
DeleteFile(FileName);
 
deletefile(Filename)
 
那个函数是把文件转移到回收站了,我不想让文件还在计算机上,
谢谢
 
Hi. This is the qmail-send program at ynmail.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<delphidelphi@263.net>:
202.96.44.30 does not like recipient.
Remote host said: 554 <unknown[61.166.155.183]>: Client host rejected: Access denied
Giving up on 202.96.44.30.

--- Below this line is a copy of the message.
信被退回来了。
baihai@cmmail.com给我正确的地址。
 
DeleteFile不会把文件放到回收站的啊,你肯定那里搞错了。
或者显式调用
sysutils.deletefile(filename);
 
DeleteFile(FileName);
我用过,
没错的!!!!!!!!1
 
SHIFT+DELETE
hehe
DeleteFile Should work and it would not put file into recycle and Shell stuff does
 
我也是用DeleteFile就可以
 
用deletefile是可以的。
或者,你调用dos的del.也行。
 
有两个deletefile,一个是api,一个在SysUtils,不过两个好像都不放到回收站
 
可以设置收费站的属性
 
可以先设置回收站的属性,然后在程序中使用DeleteFile
 
后退
顶部