Cant delete file Help.

Posted on 2005-04-25
Last Modified: 2010-05-18
There is 2 files in my Local Settings Temp directory that it wont let me delete.  The file name is huge and when I try deleting it says it cant find the file and also the properties wont come up nothing.  How the heck do I get rid of this?  Also is it ok to delete everything from my Temp folder under the Local Setting Temp directory on Win 2K?
Question by:sbornstein2
    LVL 3

    Expert Comment

    "Normally" everything in the Temp directory is ok to delete.  If it can't find the file when it tries to delete perhaps it is already gone and the directory is just not updated.  Are these files still showing if you reboot the machine?

    LVL 33

    Accepted Solution

    did u try booting in safe mode and deleting it.
    here are a list of options compiled by one of our experts Petelong.
    Look at option 2

     Can’t Delete a File

    You need permissions to delete a file are you a member of the Administrators group?
    (you need a minimum of {modify} to delete.
    1.     Try to take ownership of the file. Right click the file > Select the security Tab
    Select properties > Select Advanced > Select Owner
    Find the User or group you wish to give ownership to and select > Click apply
    Now try and delete the file;en-us;268019
    2     Is it telling you the filename is too long? Then Delete the file in DOS mode
    Start >Run >cmd {enter}
    Navigate to the folder the file is in, i.e. if its in c:\folder\anotherfolder\file, type "cd c:\folder\anotherfolder" {enter} The command prompt should change to let you know you are in
    the correct directory. Type "dir /x" {enter}
    The offending file will be listed like (
    Take note of the name and type "del" {enter}
    3.     Is the file flagged as ‘System’? Start > Run > type CMD >Click OK
    Navigate to the folder in which the file resides (i.e. cd c:\folder\folder\ {enter})
    Type attrib -r -s -a -h filename.extension {enter}
    Del filename.extension {enter}
    4.     Is the file in use? If either the OS or another program is using the file you cannot
    delete it You can with ZAP Included with the Microsoft SMS 2.0 Resource Guide and the
    Microsoft BackOffice Resource Kit 4.5. or you can download it here
    WARNING make sure you know what your deleting first!
    5.     If your hard drive is formatted with FAT32 you can boot with a boot disk and Delete
    the file from DOS. (del filename.extension) If your hard drive is formatted with NTFS you
    can boot with a boot disk and, if you lucky enough to have a copy of NTFSPro from you can boot to DOS mount the
    NTFS volumes and delete it from there.

    **Other Options**
    Use this on the file/folder in question

    Use GiPo@MoveOnBoot
    Instructions for use

    Try using "KillBox" on the file

    Try using TAKEOWN from the resource kit to force ownership and delete the file

    "Access Denied" When You Delete Folders from a Mounted Drive;en-us;243514

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Lets look at the default installation and configuration of FreeProxy 4.10 REQUIREMENTS 1. FreeProxy 4.10 Application - Can be downloaded here ( 2. Ensure that you disable the windows fi…
    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 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

    17 Experts available now in Live!

    Get 1:1 Help Now