帮忙写两个与QQ有关的BAT文件?高手一定来!

来源:百度知道 编辑:UC知道 时间:2024/09/26 20:11:19
1。运行后能把c:\program files\Tencent\QQ\123456789用rar压缩成.exe的自解压文件,且下次运行后默认解压到c:\program files\Tencent\QQ\,并运行QQ.exe
2。复制123456789.exe到d:\,若新文件的创建的时间比d:\的晚,则不提示直接覆盖,否则提示更改。

1、
@echo off
set path=c:\program files\winrar;%path%
pushd c:\program files\Tencent\QQ\
rar a -sfx 123456789.exe -r "c:\program files\Tencent\QQ\123456789\"
rar x -o+ 123456789.exe c:\
start qq.exe

2、
@echo off
pushd c:\program files\Tencent\QQ\
xcopy /d 123456789.exe d:\|findstr /c:"复制了 0 个文件"
if %errorlevel%==0 copy /-y 123456789.exe d:\
popd
pause