How to delete an empty file on desktop that Win10 says does not exist

Page 1 of 2 12 LastLast

  1. Posts : 4
    Windows 10 Home 64-bit
       #1

    How to delete an empty file on desktop that Win10 says does not exist


    I have a file on my desktop that Windows 10 insists does not exist at that location.
    A small snip of the screen showing the file next to my drive icons is attached.
    A snip of the error message is also attached when the delete command is attempted from the right-click context menu.

    I think part of the problem is that there is a space in the middle of the filename (EDMDC Dig), and there is no file extension. The size of the file is 0 bytes. The file icon is visible on the desktop and listed in any file/directory listing.

    There are plenty of supposed solutions on the web about deleting folders and files via the command line, but nothing works. They usually show deleting an empty folder and do not address the empty file issue. I have been unable to find a utility that will do the job either. I have tried and failed to find my exact problem on this forum as well.
    Attached Thumbnails Attached Thumbnails How to delete an empty file on desktop that Win10 says does not exist-empty-filejpg.jpg   How to delete an empty file on desktop that Win10 says does not exist-error-msg.jpg  
      My Computer


  2. Posts : 31,674
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Welcome to TenForums @beckrow

    There may be some file system corruption. To fix this, try opening a Command Prompt (Admin) and type the command:
    CHKDSK C: /F

    (assuming, that is, that you haven't moved your Desktop folder to another drive. If you moved it, check that drive letter instead.)

    It will say...
    Chkdsk cannot run because the volume is in use by another
    process. Would you like to schedule this volume to be
    checked the next time the system restarts? (Y/N)
    Type Y then close the command prompt and restart the PC, chkdsk will run at boot. Depending on the nature of any corruption, the file may disappear after this. If not, it should at least be possible to delete it.
      My Computers


  3. Posts : 809
    Win10
       #3

    The space in the filename, lack of extension, and zero size are perfectly fine and shouldn't cause problems.

    When you try to delete the file from the command line are you able to see the file when you do "dir d:\desktop" and what error does it report when you try to delete it?

    Code:
    PS C:\Users\vm> dir d:\desktop
    
        Directory: D:\desktop
    
    Mode                LastWriteTime         Length Name
    ----                -------------         ------ ----
    -a----         4/1/2018   6:17 AM              0 EDMDC Dig
    
    PS C:\Users\vm> del 'D:\desktop\EDMDC Dig'
      My Computer


  4. Posts : 4
    Windows 10 Home 64-bit
    Thread Starter
       #4

    I do run my desktop from my D: drive because of limited space on my solid state boot drive.
    Just to be safe I scheduled checks on drives C: & D: after a restart. No errors were reported.
    The file still will not delete in Windows with the same error message as in my original post in this thread.
    Trying to delete from the command line with "del edmdc" (because I am already in my desktop directory) just gives basically the same error:
    del : Cannot find path 'D:\desktop\edmdc' because it does not exist.

    If I try deleting the file name with a space (i.e. EDMDC Dig) I get the error message:

    Remove-Item : A positional parameter cannot be found that accepts argument 'dig'.

    I still have the problem I started with.
      My Computer


  5. Posts : 809
    Win10
       #5

    When you do "del edmdc" press TAB to let Windows autocomplete the filename. It should automatically add quotes to handle the "space," which I suspect may not be a normal space character.
      My Computer


  6. Posts : 2,450
    Windows 10 Pro x64
       #6

    There is an excellent little app, Unlocker, which among other things handles problematic deletes too.
    Maybe it's worth a try!
      My Computer


  7. Posts : 31,674
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #7

    There's always the option to boot from a usb and delete it while the OS isn't running.

    A Linux Live usb, the command prompt in the advanced options of an install or a recovery usb, or perhaps best of all, Kyhi's rescue disk...
    Windows 10 Recovery Tools - Bootable Rescue Disk
      My Computers


  8. Posts : 4,799
    Windows 11 Pro 64 Bit 22H2
       #8

    In File Explorer, Browse to D:\Desktop (or D:\Users\[UserName[\Desktop) is the file there? install Unlocker which adds the Unlocker icon to the Right click Context menu, and and right click the file and delete it with Unlocker which will unlock the file.
      My Computer


  9. Posts : 4
    Windows 10 Home 64-bit
    Thread Starter
       #9

    No autocomplete


    PolarNettles said:
    When you do "del edmdc" press TAB to let Windows autocomplete the filename. It should automatically add quotes to handle the "space," which I suspect may not be a normal space character.
    TAB does not seem to do anything. Cursor does not move.
      My Computer


  10. Posts : 809
    Win10
       #10

    Does the file show up when you do "dir"?
      My Computer


 

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

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




Windows 10 Forums