Saturday, January 4, 2025

Windows Tricks

Delete recursively hidden files in Windows

Example

Delete recursively all files starting with ._

del /s /q /h:A "._*"

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


To 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\*"


No comments:

Post a Comment

Cecilia Metela

Escuché a Lucio Flaco, sumo sacerdote de Marte, relatar la siguiente historia: La hija de Metelo, Cecilia, deseosa de concertar el matrimoni...