Friday, July 13, 2007

Batch Script - Remove Older versions of Folder

Friday, July 13, 2007
This script will remove the older versions of software folder and the folder name starts with "XYZ".

SCRIPT
@echo off
cmd /c
cd %programfiles%
for /f "Tokens=*" %%G in ('dir /B xyz*.*') do rd /s /q "%%G"

0 comments: