Re: Script to search for and delete all files with extension xxx
- From: "Jacques Trépanier" <zx_jacques@xxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 11:38:21 -0500
Create a file call DEL-xyz.cmd with notepad and enter the following:
@echo off
for /f "tokens=*" %%j in ('dir /B /s *.tmp') do del /Q "%%j"
for /f "tokens=*" %%j in ('dir /B /s *.temp') do del /Q "%%j"
for /f "tokens=*" %%j in ('dir /B /s *.dmp') do del /Q "%%j"
And run it from the directory you wnat to clean up. it can be from the root
of a drive.
Have fun!
Jacques,
"Mike62" <Mike62@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de news:
EEEDD4B5-B2B2-4E80-A467-B7C3B726147B@xxxxxxxxxxxxxxxx
I need a script to delete files with a extension of tmp, temp, and dmp.
This is probably really simple, I'm new to scripting.
also i need it to search just the local drives, no mapped drives.
Thanks in advance!!
.
- Follow-Ups:
- Re: Script to search for and delete all files with extension xxx
- From: harrykrishna . nospam
- Re: Script to search for and delete all files with extension xxx
- Prev by Date: Re: Removing users from security and distribution groups
- Next by Date: Re: Logon Script
- Previous by thread: Re: Removing users from security and distribution groups
- Next by thread: Re: Script to search for and delete all files with extension xxx
- Index(es):
Relevant Pages
|