Doc_ArchiveDelete 삭제대상검색

by 관리자 posted Nov 22, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

@echo off

md c:\windows\system32\cwit\temp

echo 대상을 정리합니다. 잠시만 기다려 주십시오.

c:

dir /b /s c:\*.xlsx > c:\windows\system32\cwit\temp\list_xlsx_c.txt
dir /b /s c:\*.xlsm > c:\windows\system32\cwit\temp\list_xlsm_c.txt
dir /b /s c:\*.xls > c:\windows\system32\cwit\temp\list_xls_c.txt
dir /b /s c:\*.xlw > c:\windows\system32\cwit\temp\list_xlw_c.txt
dir /b /s c:\*.pptx > c:\windows\system32\cwit\temp\list_pptx_c.txt
dir /b /s c:\*.pptm > c:\windows\system32\cwit\temp\list_pptm_c.txt
dir /b /s c:\*.ppt > c:\windows\system32\cwit\temp\list_ppt_c.txt
dir /b /s c:\*.pps > c:\windows\system32\cwit\temp\list_pps_c.txt
dir /b /s c:\*.ppsx > c:\windows\system32\cwit\temp\list_ppsx_c.txt
dir /b /s c:\*.ppsm > c:\windows\system32\cwit\temp\list_ppsm_c.txt
dir /b /s c:\*.ppt > c:\windows\system32\cwit\temp\list_ppt_c.txt
dir /b /s c:\*.doc > c:\windows\system32\cwit\temp\list_doc_c.txt
dir /b /s c:\*.docx > c:\windows\system32\cwit\temp\list_docx_c.txt
dir /b /s c:\*.hwp > c:\windows\system32\cwit\temp\list_hwp_c.txt
dir /b /s c:\*.pdf > c:\windows\system32\cwit\temp\list_pdf_c.txt
dir /b /s c:\*.doc > c:\windows\system32\cwit\temp\list_doc_c.txt
dir /b /s c:\*.docx > c:\windows\system32\cwit\temp\list_docx_c.txt

 

echo 대상을 검색합니다. 잠시만 기다려 주십시오.

 

d:

dir /b /s d:\*.xlsx > c:\windows\system32\cwit\temp\list_xlsx_d.txt
dir /b /s d:\*.xlsm > c:\windows\system32\cwit\temp\list_xlsm_d.txt
dir /b /s d:\*.xls > c:\windows\system32\cwit\temp\list_xls_d.txt
dir /b /s d:\*.xlw > c:\windows\system32\cwit\temp\list_xlw_d.txt
dir /b /s d:\*.pptx > c:\windows\system32\cwit\temp\list_pptx_d.txt
dir /b /s d:\*.pptm > c:\windows\system32\cwit\temp\list_pptm_d.txt
dir /b /s d:\*.ppt > c:\windows\system32\cwit\temp\list_ppt_d.txt
dir /b /s d:\*.pps > c:\windows\system32\cwit\temp\list_pps_d.txt
dir /b /s d:\*.ppsx > c:\windows\system32\cwit\temp\list_ppsx_d.txt
dir /b /s d:\*.ppsm > c:\windows\system32\cwit\temp\list_ppsm_d.txt
dir /b /s d:\*.ppt > c:\windows\system32\cwit\temp\list_ppt_d.txt
dir /b /s d:\*.doc > c:\windows\system32\cwit\temp\list_doc_d.txt
dir /b /s d:\*.docx > c:\windows\system32\cwit\temp\list_docx_d.txt
dir /b /s d:\*.hwp > c:\windows\system32\cwit\temp\list_hwp_d.txt
dir /b /s d:\*.pdf > c:\windows\system32\cwit\temp\list_pdf_d.txt
dir /b /s d:\*.doc > c:\windows\system32\cwit\temp\list_doc_d.txt
dir /b /s d:\*.docx > c:\windows\system32\cwit\temp\list_docx_d.txt

 

type c:\windows\system32\cwit\temp\*.txt > C:\Windows\System32\CWIT\del_list.txt