About 58 results
Open links in new tab
  1. Completely delete a folder in Windows using command line

    Using rd /s foo - that's without the /q silent option - will delete all the sub folders for you, but you have to answer Y to the prompt, so requires batch files to be attended.

  2. windows - How can I delete all files/subfolders in a given folder via ...

    Apr 27, 2015 · I would like to delete all files and subfolders using a batch file in Windows 7 and keep the top folder. Basically emptying the folder.

  3. How to recursively delete directory from command line in windows ...

    Aug 23, 2010 · 81 If you want to delete a long and complicated folder structure from the command prompt that RmDir won't touch and not even explorer can display, I've found robocopy can be very …

  4. How to really force delete a file / folder in Windows 10

    Apr 3, 2019 · The solution I finally managed to delete the file and folders by rebooting into cmd prompt troubleshooting mode (at lock screen, hold shift, click power icon and reboot, then choose reboot to …

  5. How to delete directories with path/names too long for normal delete

    C:\delete\this folder\with a very long name By dragging the folder from an Explorer window and dropping in the Terminal/cmd window. Be careful: The deleted files will not go to the trash folder! Once …

  6. Recursively delete empty directories in Windows - Super User

    Dec 14, 2015 · To delete empty folders while excluding hidden files To delete empty folders while excluding hidden files using the command prompt (cmd), you can use a combination of the dir, for, …

  7. Delete corrupted folder in Windows 10 - Super User

    Dec 11, 2020 · 0 Whenever I try to delete this folder, the progress bar completes without any prompt but the folder is still there with it's subfolder.

  8. Delete a specific folder if it is empty, from batch file in Windows?

    Sep 4, 2020 · A folder can be considered non-empty too if it has subfolders. By implying /s, you say: remove all files and folders inside the folder and then delete this folder. If you simply do: rd /q new It …

  9. windows - How do I delete a folder that's in use? - Super User

    Jul 15, 2016 · 190 Sometimes when I'm working in Windows I'll get this prompt when I try to delete a directory: Folder In Use The action can't be completed because the folder is open in another program …

  10. Delete registry key or value via a CMD script? - Super User

    How do I edit an already-in-production .cmd script file, in order to have the script delete a certain registry key in the Windows registry? Firstly, is this even possible, and secondly (if that's ...