Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 May : How to delete a file forcefully.

www.cryer.info
Managed Newsgroup Archive

How to delete a file forcefully.

Subject:How to delete a file forcefully.
Posted by:"Imran Khan" (imran.kh..@summitindia.com)
Date:13 May 2006 05:14:49

I have some files having  the modification date of the file is earlier than the creation date.

modification date- May 12, 2006, 7:03:21 PM
creation date - January 01, 1601, 5:07:09 AM

My problem is how to *forcefully* delete such file programatically. These files are being copied to a folder from a location where modem is writing these files.

Delphi's 'delete()' function is unable to delete the file, while in window's explorer the file can be deleted easiely by pressing delete button.

The folder from where file has to be deleted is on 'WINDOWS 2003 SERVER' and the Delphi application is running on 'Windows 2000 Server'.

Thanks in advance.

regards,

Replies:

www.cryer.info
Managed Newsgroup Archive