Saturday, January 4, 2025

Windows Tricks

Delete recursively hidden files in Windows

Example

Delete recursively all files starting with ._

DEL /S /Q /A:H ._*


Search every file in the current directory and all subdirectories that contained a word, regardless of the letter case

Example

Find the word "Windows"

findstr /s /i Windows *.*

Sourcehttps://learn.microsoft.com/en-us/windows-server/administration/windows-commands/findstr


Zip each immediate subdirectory into its own .zip using 7-Zip

for /d %i in (*) do "C:\Program Files\7-Zip\7z.exe" a "%i.zip" "%i\*"


Force delete recycle bin from an external drive

rd /s /q e:\$Recycle.bin


No comments:

Post a Comment

The Maiden's Walk