DOS 命令:copy_DOS 命令学习手册

@echo off

title $$$$*晗*晗*制*造*$$$$

mode con: cols=14 lines=1

:again

cls

del /Q /f “%temp%copy.tmp” >nul 2>nul

for %%i in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do @fsutil fsinfo drivetype %%i: >>”%temp%copy.tmp”

findstr /i “可移动驱动器” “%temp%copy.tmp” 

if errorlevel==1 goto end

if errorlevel==0 goto copy 

:end 

rem 没有检测到可移动磁盘!

if not exist %temp%sleep.exe ping 127.0.0.1 -n 20 >nul 2>nul

%temp%sleep.exe 20s

goto again

:copy 

if exist c:copy goto goon

cd

cd /d c:

md copy  

:goon 

for /f “tokens=1” %%i in (findstr /i “可移动驱动器” “%temp%copy.tmp”) do (

xcopy /e /y  %%i*.* c:copy >nul 2>nul

)

rem 已复制,请及时清理文件!

if not exist %temp%sleep.exe ping 127.0.0.1 -n 20 >nul 2>nul

%temp%sleep.exe 20s

goto again

唐伯虎点蚊香

前端小白,想各位学习!

Share
Published by
唐伯虎点蚊香

Recent Posts

聊聊vue3中的defineProps

在Vue 3中,defineP…

1 周 ago

在 Chrome 中删除、允许和管理 Cookie

您可以选择删除现有 Cooki…

2 周 ago

自定义指令:聊聊vue中的自定义指令应用法则

今天我们来聊聊vue中的自定义…

3 周 ago

聊聊Vue中@click.stop和@click.prevent

一起来学下聊聊Vue中@cli…

4 周 ago

Nginx 基本操作:启动、停止、重启命令。

我们来学习Nginx基础操作:…

4 周 ago

Vue3:手动清理keep-alive组件缓存的方法

Vue3中手动清理keep-a…

1 月 ago