Windows 10: Accidentally naming a file con.txt and can't delete it

Discus and support Accidentally naming a file con.txt and can't delete it in Windows 10 Gaming to solve the problem; Last time i was doing this just as an experiment and windows didn't stop me. This time however when i tried to clean up my pc this is what happened.... Discussion in 'Windows 10 Gaming' started by Max Guo, Apr 6, 2022.

  1. Max Guo Win User

    Accidentally naming a file con.txt and can't delete it


    Last time i was doing this just as an experiment and windows didn't stop me. This time however when i tried to clean up my pc this is what happened. Any ideas on how i can get rid of it?

    :)
     
    Max Guo, Apr 6, 2022
    #1
  2. Teo5132 Win User

    accidentally delete a system txt

    i accidentally delete a system txt and the icon on taskbar start missing everytime i start the pc, cannot open apps in search and cannot search some apps, cannot right click on the windows icon.

    All of this start after i accidentally delete a system txt
     
    Teo5132, Apr 6, 2022
    #2
  3. dark2099 Win User
    Generating a .txt based file list in Windows 7

    I want to be able to generate a .txt file that lists all the files and folders in a specific folder on my PC, but don't know the name of any programs that do that. Searched on google a bit and came up with this guide, but it's for XP and I can't seem to find some of the folder options to modify the .bat file. Any suggestions? Thanks

    http://www.theeldergeek.com/file_list_generator.htm

    EDIT: The .bat file will do what I want if it is in the folder I want to do it in, but the option I want to add is having the right click option that it shows.
     
    dark2099, Apr 6, 2022
    #3
  4. Accidentally naming a file con.txt and can't delete it

    Generating a .txt based file list in Windows 7

    No, that > bla.txt is the target file to write to. You could use a wildcard in the argument, ie c:\windows\*.txt which would list all dlls in c:\windows. But adding that to a simple right-click would be tricky.

    Basically you would execute fancyfile.bat c:\windows\*.txt, fancyfile.bat would then write all .txt files to bla.txt.
     
    DanTheBanjoman, Apr 6, 2022
    #4
Thema:

Accidentally naming a file con.txt and can't delete it

Loading...
  1. Accidentally naming a file con.txt and can't delete it - Similar Threads - Accidentally naming file

  2. I have accidentally created a file con.* that I cannot delete

    in Windows 10 Network and Sharing
    I have accidentally created a file con.* that I cannot delete: I have accidentally created a file con.* I cannot change name or delete in Windows as response is "invalid file handle" Also cannot delete in C Prompt. File is listed in Directory in C prompt so I know it is there, but cannot delete even as Administrator as response is "The...
  3. I have accidentally created a file con.* that I cannot delete

    in Windows 10 Gaming
    I have accidentally created a file con.* that I cannot delete: I have accidentally created a file con.* I cannot change name or delete in Windows as response is "invalid file handle" Also cannot delete in C Prompt. File is listed in Directory in C prompt so I know it is there, but cannot delete even as Administrator as response is "The...
  4. I have accidentally created a file con.* that I cannot delete

    in Windows 10 Software and Apps
    I have accidentally created a file con.* that I cannot delete: I have accidentally created a file con.* I cannot change name or delete in Windows as response is "invalid file handle" Also cannot delete in C Prompt. File is listed in Directory in C prompt so I know it is there, but cannot delete even as Administrator as response is "The...
  5. File deleted accidentally

    in Windows 10 Gaming
    File deleted accidentally: Where is the trash bin in Windows 11 https://answers.microsoft.com/en-us/windows/forum/all/file-deleted-accidentally/98e95b04-7eef-4387-b070-51941edc672c
  6. File deleted accidentally

    in Windows 10 Software and Apps
    File deleted accidentally: Where is the trash bin in Windows 11 https://answers.microsoft.com/en-us/windows/forum/all/file-deleted-accidentally/98e95b04-7eef-4387-b070-51941edc672c
  7. Accidentally naming a file con.txt and can't delete it

    in Windows 10 Software and Apps
    Accidentally naming a file con.txt and can't delete it: Last time i was doing this just as an experiment and windows didn't stop me. This time however when i tried to clean up my pc this is what happened. Any ideas on how i can get rid of it?...
  8. Accidentally naming a file con.txt and can't delete it

    in Windows 10 Network and Sharing
    Accidentally naming a file con.txt and can't delete it: Last time i was doing this just as an experiment and windows didn't stop me. This time however when i tried to clean up my pc this is what happened. Any ideas on how i can get rid of it?...
  9. con.* file delete

    in Windows 10 Network and Sharing
    con.* file delete: I was making a placeholder file with a random name and i acciedntally typed "con" in the name. I now can't delete the file. Can anybody help me? https://answers.microsoft.com/en-us/windows/forum/all/con-file-delete/da93bf49-71c2-41da-aa91-b23ac3b6bfd4"
  10. ACCIDENTALLY DELETED FILES

    in Windows 10 Installation and Upgrade
    ACCIDENTALLY DELETED FILES: I accidentally deleted files from Downloads Folder using Clean Now button (it can be found in Settings - Storage - Click on "Change how we free up space automatically". I forgot that I didn't have a back up copy of all my files in the Downloads Folder but at that time I...