Tuesday, September 27, 2011

How to search and delete a file form Command prompt in Windows

stpe1: open notepad and copy  below content to notepad

 
cd \
c:
ATTRIB /s -a -h -r -s *.asm
del /s *.asm

d:
ATTRIB /s -a -h -r -s *.asm
del  /s *.asm

e:
ATTRIB /s -a -h -r -s *.asm
del  /s *.asm

f:
ATTRIB /s -a -h -r -s *.asm
del  /s *.asm

step 2: rename the "asm" to your require file
  (doc for msword, xls for excel ,  mp3 for mp3 files).

step3:  save this file as .bat extention  

step 4:  run this batch file


it will delete all the file with the given extentions.




No comments:

Post a Comment