Delete Stubborn File

Page 2 of 3 FirstFirst 123 LastLast

  1. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #11
      My Computer


  2. Posts : 194
    Windows 7 Home Premium 64 bit
    Thread Starter
       #12

    Pyprohly said:
    Where "unlocker" applications couldn't detect a handle, deleting stubborn files using either the 8.3 short path naming convention or the long path naming convention have proven quite successful strategies in the past...

    Chuckhig, create the below batch file and drag your problem file onto this script.
    Code:
    if "%~1"=="" exit /b
    del /a /f \\?\%1
    tskill explorer
    goto 2>NUL & del %0
    Or if your problem item is actually a folder (as per what your attached image suggests), then create the below instead.
    Code:
    if "%~1"=="" exit /b
    rd /s /q \\?\%1
    tskill explorer
    goto 2>NUL & del %0
    Sorry..way over my head.
      My Computer


  3. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #13

    Maybe this method is more to your liking:

    Undeletable File - Delete
      My Computer


  4. Posts : 194
    Windows 7 Home Premium 64 bit
    Thread Starter
       #14

    Have been trying your suggestion. Get message cannot find file .
      My Computer


  5. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #15

    Hmm, so it is a ghost file.
      My Computer


  6. Posts : 194
    Windows 7 Home Premium 64 bit
    Thread Starter
       #16

    I even attempted the CMD suggestion. I must be trying it bad or something. No luck. I had this problem once a long time ago before this new computer. I was given given a code or something..not sure,but it worked. I know you have to type the correct path with that code,but lost it. I tried to move the folder to my desktop and cannot either. Oh well. The folder is empty...just annoying. Thanks for your help. I will keep looking for an answer.
      My Computer


  7. Posts : 10,485
    W7 Pro SP1 64bit
       #17

    Did you get a chance to run the check mentioned in post #7?
      My Computer


  8. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #18

    RE: X-Plane

    Is that run from DVD? Or installed on your hard drive?

    In any case it seems that the folder is created by the program. I've seen other programs that create folders that cannot be deleted if:

    A: The program is not in use.

    B: You change the default "Save Location" of a folder that is used by the program.

    I know of ways to delete zero byte files/ directories but you need a backp before going ahead.

    EDIT:

    On the basis that you might want to go ahead:

    Create a system image backup that you can restore if needed.

    Then read this post:

    Cannot delete o byte file that "doesn't exist"

    Use PowerTool PowerTool x64 V1.6 for your 64bit machine. Just delete the folder and don't mess about with the other features.
    Last edited by Callender; 20 Jan 2016 at 17:08. Reason: add info
      My Computer


  9. Posts : 166
    Windows 7 Home Premium 64bit
       #19

    Have you tried a Linux LiveCD? I've had really stubborn files that were easily dispatched from Linux...
      My Computer


  10. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #20

    chuckhig said:
    Pyprohly said:
    [...]
    Sorry..way over my head.
    It's not "way over your head". I'm sure you've created a file before. And I'm sure you've dragged and dropped a file somewhere before.

    chuckhig said:
    I had this problem once a long time ago before this new computer. I was given given a code or something..not sure,but it worked.
    That "code" is probably the same one used in the batch file I'm offering you to try.

    Well I've gone ahead and created the batch files for you and have attached them here. The instructions are simple: if you want to delete a file, drag and drop it on FileDeleter.bat's icon. If you want to delete a folder, drag and drop the folder on to FolderDeleter.bat.


    Edit: Removed attachments. Please see post 9 for the mentioned batch files.
    Last edited by Pyprohly; 21 Jan 2016 at 05:56. Reason: Fixed formatting typo and removed attachments.
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:17.
Find Us