About 88,800 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 …

    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 …

  4. File delete - access is denied even with /F - Super User

    Aug 22, 2015 · To Delete a specific file: When del /f <FILE> producing an Access Denied error, you need to firstly take owner and grant access using takeown and icacls in the command line …

  5. 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 ...

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

    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 …

  7. 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 …

  8. 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 …

  9. How to set up a Windows Scheduled Task to delete a ... - Super User

    Jul 29, 2019 · cmd /c del /f /q "C:\Logfile.txt" or via a batch file your scheduled task would point to: @echo off del /f /q "C:\Logfile.txt" exit Either way, I would likely include the /f to ignore the read …

  10. How to delete files with specified text in their names?

    Jun 25, 2015 · From a command line To display matching files: dir *_bad.jpg To delete matching files: del *_bad.jpg Use the /s option to match files in subdirectories as well as the current …