Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows bat bulk delete backup script

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Echo offgoto startFilename: del_backup.batVersion: V3.0Author: XADBlog Site: https://blog.51cto.com/oneniceCreated Time: Tuesday, 2018-02-13 14:52:58.00Environment: windows server 2008:startset file_path=E:\ set file_ext=*.bkfset file_live_time=-15set file_del_log=D:\ del_log.txt echo= > >% file_del_log%echo = > >% file_del_log%echo% date% -% Time% [BEGIN] > > file_del_log%echo= > > file_del_log%forfiles / p% file_path% / s / d% file_live_time% / m% file_ext% / c "cmd / c echo @ path SIZE:@fsize L_C_TIME:@fdate-@ftime > >% file_del_log%" forfiles / p% file_path% / s / d% file_live_time% / m% file_ext% / c " Cmd / c del @ path "echo= > > file_del_log%echo date% -% time% [END] > > file_del_log%echo= > > file_del_log%

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report