본문 바로가기

낭만 프로그래머

검색하기
낭만 프로그래머
프로필사진 조영래

  • 전체보기 (191)
    • AI (1)
      • Tensorflow (1)
    • Common (6)
    • Javascript (16)
      • Common (2)
      • Angular (5)
      • Bootstrap (3)
      • Node.js (1)
      • Kendo UI (1)
    • Linux (49)
      • Common (4)
      • CentOS (39)
      • Ubuntu (6)
    • Java (39)
      • Common (23)
      • Spring (9)
      • Tomcat (6)
    • Android (24)
    • Tool (5)
      • Eclipse (5)
    • C# (2)
    • Windows (12)
      • Common (12)
    • Kotlin (9)
    • ETC (25)
    • Swift (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2021/03   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
  • centos
  • linux
  • MVC
  • java
  • tomcat
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2021/03/08 (1)

낭만 프로그래머

Windows에서 날짜가 지난 오래된 파일 삭제 명령

일정 기간이 지난 오래된 파일들을 삭제해야 될 경우가 있다. 예를 들면 Database 파일들 같은 것들이다. 간단하게 Batch파일을 만들어서 작업스케쥴러에 등록 해보자 D:\BackupFiles : 삭제해야될 대상들의 폴더 경로 D -10 : 10일이 지난 조건 forfiles /P "D:\BackupFiles" /S /M *.log /D -10 /C "cmd /c del @file"

Windows/Common 2021. 3. 8. 10:31
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바