How to Recursives delete files and Folders on Windows with AutoHotkey v1
This video demonstrates how to delete a folder and its subfolders using AutoHotkey.
- 00:00 ️ This script deletes a folder and its subfolders.
- This script deletes a given folder and its subfolders based on a name.
- 00:49 ️ Searched and deleted all “test” folders.
- It looked for folders named “test” and deleted them.
- 01:18 Navigate to C:/temp and delete the folder to view deleted folders in Notepad.
- Navigate to C:/temp, select the folder, and hit okay to delete it; notepad will show the deleted folders.
- 01:53 No folder selected? Script will use default directory.
- If no folder is selected, the script will use the default directory of where the script is located.
- 02:25 ️ Timer used to update progress bar every 0.1s to avoid speed issues.
- A set timer is used to update the progress bar every 10th of a second to avoid speed up and slow down issues.
- 03:10 ️ If the file name matches, it will be moved to the recycle bin and the count will be increased.
- If the loop file name matches the name being searched for, it will be moved to the recycle bin and the count will be incremented.
- 04:05 Copy, count, and store words from a website in 25 lines of code!
- This powerful script can copy words from a website, count them, and put them in the clipboard in only 25 lines of code.
- 04:51 Subscribe to our AutoHotkey channel for learning resources.
- Subscribe to our AutoHotkey channel for videos, tools, and courses to learn how to use AutoHotkey.


