[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • Last Modified:

Data Execution Prevention is stopping me from deleting files and cleaning up a drive

I am attempting to delete some large files and folders on a secondary drive.  I keep getting a dialog box that Data Execution Prevention has closed this program, presumably Windows Explorer.  Then usually Windows Explorer crashes when I click the dialog box.

Reconfiguring Data Execution Prevention to exclude Windows Explorer does no good.

Editing boot.ini by adding
/noexecute=AlwaysOff
and rebooting the computer does nothing whatsoever.  Same problem, same symptoms.

Any ideas about how to actually get control of my computer again?
0
Paul_Norris_II
Asked:
Paul_Norris_II
  • 3
2 Solutions
 
KlintanCommented:
If you want to delete files that you can't delete with Explorer you should use command prompt.
Click start and then run. Type cmd and press enter
First change directory with CD /D
Then find the short name of the file/folder with DIR /X
Use DEL /F /S to delete files
use RMDIR /S to delete folders
Example

C:\Documents and Settings\username\My Documents>CD /D D:\

C:\>DIR /X
 Volume in drive D has no label.
 Volume Serial Number is XXXX-XXXX

 Directory of D:\

2006-05-17  11:09                80 FILTER~1.LOG FilterLog.log
2006-05-05  16:53    <DIR>                       i386
2006-05-29  15:06    <DIR>          LONGST~1     Long stange name
---snip---
               9 File(s)        303 167 bytes
              17 Dir(s)  56 041 730 048 bytes free

D:\>rmdir /S LONGST~1
LONGST~1, Are you sure (Y/N)? y

0
 
Mohammed HamadaSenior IT ConsultantCommented:
Boot up to Safe Mode and delete the files.

Use Killbox or Unlocker in Safe Mode to remove hard to remove file.

Killbox to Delete files
http://www.scancomplete.com/download/killbox/

OR

Unlocker
http://www.majorgeeks.com/download4660.html
0
 
KlintanCommented:
I think that both me and moh10ly have answered this question and it do not feel right to delete this question with no credit to us.
0
 
Paul_Norris_IIAuthor Commented:
My apologies for not assigning points sooner.  The first answer worked, and I was mentally kicking myself for missing such an obvious thing to try.  Somehow, it didn't seem to me that command mode would not suffer the same problem as the GUI.  I used the first answer successfully and believe the second answer would have worked as well.
0
 
KlintanCommented:
Thank you :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now