- 帖子
- 9
- 积分
- 22
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2018-10-19
|
2楼
发表于 2018-11-23 19:29
| 只看该作者
bat + vbs 搞定
:: 注释
:: 功能——打开一个指定路径文件夹1,创建一个指定路径文件夹2并打开,复制文件夹1下所有东西到文件夹2。路径可根据需求修改。
:: %date:~0,4% 表示当前电脑显示的年
:: %date:~5,2% 表示月
:: %date:~8,2% 表示日
echo Dim WshShell >>1.vbs
echo Set WshShell = CreateObject("Wscript.Shell") >>1.vbs
echo WScript.Sleep 1000 >>1.vbs
echo WshShell.SendKeys "^a" >>1.vbs
echo WScript.Sleep 300 >>1.vbs
echo WshShell.SendKeys "^c" >>1.vbs
echo Dim WshShell >>2.vbs
echo Set WshShell = CreateObject("Wscript.Shell") >>2.vbs
echo WScript.Sleep 1000 >>2.vbs
echo WshShell.SendKeys "^v" >>2.vbs
::打开路径文件夹1
explorer \\10.0.12.12\dailybuild\android\sm8150\%date:~0,4%-%date:~5,2%-%date:~8,2%_sm8150_p_dev_bsui_20181015\skywalker_eng_whole_netcom\flash
wscript.exe 1.vbs
::创建本地文件夹2
md E:\SKW刷机固件\%date:~0,4%-%date:~5,2%-%date:~8,2%_sm8150_p_dev_bsui_20181015skywalker_eng_whole_netcom
::打开本地文件夹2
explorer E:\SKW刷机固件\%date:~0,4%-%date:~5,2%-%date:~8,2%_sm8150_p_dev_bsui_20181015skywalker_eng_whole_netcom
wscript.exe 2.vbs
del 1.vbs
del 2.vbs |
|