| |||||||||||||||||||||||||||||
C:\Windows\system32\cmd.exe | - □ × | ||||||||||||||||||||||||||||
Microsoft Windows [版本 10.0.17134.285] (c) 2018 Microsoft Corporation。保留所有权利。 C:\Users\holley>echo 用copy 用copy C:\Users\holley>ping www.bathome.net 正在 Ping c3.wuyou.net [117.25.130.178] 具有 32 字节的数据: 来自 117.25.130.178 的回复: 字节=32 时间=55ms TTL=51 请求超时。 来自 117.25.130.178 的回复: 字节=32 时间=54ms TTL=51 来自 117.25.130.178 的回复: 字节=32 时间=54ms TTL=51 117.25.130.178 的 Ping 统计信息: 数据包: 已发送 = 4,已接收 = 3,丢失 = 1 (25% 丢失), 往返行程的估计时间(以毫秒为单位): 最短 = 54ms,最长 = 55ms,平均 = 54ms C:\Users\holley> |
复制代码
- @echo off
- cd /d "%~dp0"
- set "NewFolder=Gback"
- if not exist "%NewFolder%" (
- md "%NewFolder%"
- )
- for %%a in (log sys users) do (
- xcopy /e /y "%%a" "%NewFolder%\%%a\"
- rd /s /q "%%a"
- md "%%a"
- )
复制代码
- @echo off
- cd /d "%~dp0"
- set "NewFolder=Gback"
- if not exist "%NewFolder%" (
- md "%NewFolder%"
- )
- for %%a in (log sys users) do (
- move /y "%%a" "%NewFolder%\"
- md "%%a"
- )
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |