0% found this document useful (0 votes)
74 views1 page

Batch Programming - For Loop Delete

This batch deletes all .7z and .gpg (GNU PrivacyGuard) files in the folder c:\Backup-upload\ using a for loop and a set variable. Diese batch löscht dateien mit einer for loop

Uploaded by

defect122
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views1 page

Batch Programming - For Loop Delete

This batch deletes all .7z and .gpg (GNU PrivacyGuard) files in the folder c:\Backup-upload\ using a for loop and a set variable. Diese batch löscht dateien mit einer for loop

Uploaded by

defect122
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 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