You are on page 1of 1

Batch

@echo off set dir="c:\Backup-upload\" for /R %dir% %%f in (*.7z *.gpg) do ( del %%f ) pause exit

What it does : This batch deletes all .7z and .gpg (GNU PrivacyGuard) files in the folder c:\Backup-upload\ using a for loop and a set variable.

You might also like