0

I'm looking for a command line utility to delete NTFS files and directories. And I want it to work: close handles, recurse, never fail, never quit, super-kill stubborn holders of handles, everything.

Any suggestions?

3 Answers3

1

Try this out-if the files are locked sometimes the ONLY way to delete them is during a reboot: http://www.docsdownloads.com/Tier1/dr-delete.htm

Josh Budde
  • 2,378
  • 14
  • 7
  • yeah, i was sort of afraid of that. –  Jan 06 '10 at 02:17
  • There is no way around the reboot for certain deletes. This can cause slightly confusing scenarios where a file still "appears" to be present but it's gone. You will get "Access Denied" errors (IIRC) if you attempt to do anything to them while they are in limbo waiting for the reboot. – Helvick Jan 06 '10 at 07:03
1

You didn't specify if its something that has to be done at a specific time or if you just need files deleted that are stubborn.

What about Movefile from sysinternals? It schedules up the deletion (just set the destination as "" to delete) to occur during reboot before anything can get a handle on the files: http://technet.microsoft.com/en-us/sysinternals/bb897556.aspx

And it is a commandline application so easily scripted in.

Shial
  • 1,017
  • 1
  • 9
  • 14
  • thanks, i'll try that out. it doesn't need to be scheduled, i actually plan to use it in scripts. –  Jan 06 '10 at 02:17
0

Try unlocker

http://www.filehippo.com/download_unlocker/

DmitryK
  • 256
  • 1
  • 7