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

Posted on 2006-05-28
Last Modified: 2008-01-09
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
and rebooting the computer does nothing whatsoever.  Same problem, same symptoms.

Any ideas about how to actually get control of my computer again?
Question by:Paul_Norris_II
    LVL 2

    Accepted Solution

    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

    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
                   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

    LVL 23

    Assisted Solution

    by:Mohammed Hamada
    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


    LVL 2

    Expert Comment

    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.

    Author Comment

    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.
    LVL 2

    Expert Comment

    Thank you :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now