Deleting locked files

contains all delphi packages mentioned below
Post Reply
abraham
Posts: 2
Joined: Mon Dec 13, 2004 1:41 pm

Deleting locked files

Post by abraham »

Hi Mat,

I'm trying to delete in-use files specifically Windows pagefile without restart.
Can I use any of your components to accomplish this?

Thanks, Abraham
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I think the page file is used by kernel land. So you will probably not be able to delete it from user land straight away. What you could try to do is to change the page file settings yourself (= use no page file) and then delete the file. But I'm not sure whether changing the settings need a reboot or not. Or course you could use MoveFileEx to remove the file during the next reboot.
Post Reply