Windows 10: Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...

Discus and support Cannot Delete Notepad Files - "this action cannot be completed because the file is open in... in Windows 10 Software and Apps to solve the problem; Hello,I am running Windows 10 HomeI can not delete "Text Document" files aka saved notepad filesI get the same error message whether I drag the file to... Discussion in 'Windows 10 Software and Apps' started by Sam P_2, Jul 31, 2022.

  1. Sam P_2 Win User

    Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...


    Hello,I am running Windows 10 HomeI can not delete "Text Document" files aka saved notepad filesI get the same error message whether I drag the file to the recycle bin or if I right click and select delete.Either way I get a pop up that said:"File in UseThis action cannot be completed because the file is open in preview handler surrogate host"It seems to only occur for Text Documents from notepad. I don't seem to have this issue with any other file type.When I get this error there are no notepad windows open at all. I have tried going to task manager to see if notepad is open anywhere and to

    :)
     
    Sam P_2, Jul 31, 2022
    #1

  2. Batch file

    hello,

    i am not so good in creating batch files i need some help in creating one.

    in the following path

    C:\Windows\System32\spool\PRINTERS

    there is a .SHD and .SPL file created when prints launched

    i need a batch file to open the .SPL in notepad first then on closing the notepad opened, all the files .SHD and .SPL are permanently deleted

    any help please

    code to open the notepad is as below

    start notepad "C:\windows\system32\spool\printers\FP00002.SPL"

    the file is opened but there are unwanted characters that appear as well as below


    Cannot Delete Notepad Files - "this action cannot be completed because the file is open in... upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, Jul 31, 2022
    #2
  3. Batch file

    in fact when i reset a user password it is supposed to print the generated password to a printer but i don't want to print it. i want the batch file to open the .spl file generated in notepad, i note the password then on closing the notepad, the files .shd and .spl are deleted permanently from the folder
     
    Sandeep Bhugoo, Jul 31, 2022
    #3
  4. Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...

    Batch file

    thank you for your reply. how to merge the codes so that the batch file does this

    the batch file displays the options below

    1. open the *.spl file in notepad
    2. delete the *.shd and *.spl files
    3.exit

    commands execute as options are selected
     
    Sandeep Bhugoo, Jul 31, 2022
    #4
Thema:

Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...

Loading...
  1. Cannot Delete Notepad Files - "this action cannot be completed because the file is open in... - Similar Threads - Cannot Delete Notepad

  2. this action cannot be completed because the file is open in runtime broker.

    in Windows 10 Software and Apps
    this action cannot be completed because the file is open in runtime broker.: I got this message when i was deleting a file on file explorer what does this mean and how can i fix it https://answers.microsoft.com/en-us/windows/forum/all/this-action-cannot-be-completed-because-the-file/4e760ad1-bff9-4d9a-a367-26acdad9feeb
  3. this action cannot be completed because the file is open in runtime broker.

    in Windows 10 BSOD Crashes and Debugging
    this action cannot be completed because the file is open in runtime broker.: I got this message when i was deleting a file on file explorer what does this mean and how can i fix it https://answers.microsoft.com/en-us/windows/forum/all/this-action-cannot-be-completed-because-the-file/4e760ad1-bff9-4d9a-a367-26acdad9feeb
  4. “The action cannot be completed because it or a file in it is open in another program”

    in Windows 10 Gaming
    “The action cannot be completed because it or a file in it is open in another program”: I'm attempting to delete the Steam folder off my computer. It's not a gaming computer and the large amount of space Steam takes up is slowing it down. I attempted to move the folder to the Recycle Bin, but received the message in the title.Doing some research on here, I came...
  5. “The action cannot be completed because the file is open in another program”

    in Windows 10 Gaming
    “The action cannot be completed because the file is open in another program”: All I want to do is simply rename a folder. No apps are running, this happens even immediately after reboot. I'm trying random potential solutions found on Google but nothing is helping, and I am normally a Mac user so I am quite lost in general.Can someone please help me?...
  6. “The action cannot be completed because the file is open in another program”

    in Windows 10 Software and Apps
    “The action cannot be completed because the file is open in another program”: All I want to do is simply rename a folder. No apps are running, this happens even immediately after reboot. I'm trying random potential solutions found on Google but nothing is helping, and I am normally a Mac user so I am quite lost in general.Can someone please help me?...
  7. “The action cannot be completed because the file is open in another program”

    in Windows 10 BSOD Crashes and Debugging
    “The action cannot be completed because the file is open in another program”: All I want to do is simply rename a folder. No apps are running, this happens even immediately after reboot. I'm trying random potential solutions found on Google but nothing is helping, and I am normally a Mac user so I am quite lost in general.Can someone please help me?...
  8. Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...

    in Windows 10 Network and Sharing
    Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...: Hello,I am running Windows 10 HomeI can not delete "Text Document" files aka saved notepad filesI get the same error message whether I drag the file to the recycle bin or if I right click and select delete.Either way I get a pop up that said:"File in UseThis action cannot be...
  9. Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...

    in Windows 10 Gaming
    Cannot Delete Notepad Files - "this action cannot be completed because the file is open in...: Hello,I am running Windows 10 HomeI can not delete "Text Document" files aka saved notepad filesI get the same error message whether I drag the file to the recycle bin or if I right click and select delete.Either way I get a pop up that said:"File in UseThis action cannot be...
  10. The Action Cannot Be Completed Because File Is Open In System (HELP)

    in Windows 10 Ask Insider
    The Action Cannot Be Completed Because File Is Open In System (HELP): [ATTACH] So, I downloaded this font for a project of mine and now it just refuses to be deleted... Everything else works. I can rename it, move it, and duplicate it but can't delete it. I'm very confused and I've tried to look online for anyone else that had this issue but...