【BAT批处理】bat批量处理脚本命令帮助

九、命令帮助

###########################

ver
cmd /?
set /?
rem /?
if /?
echo /?
goto /?
for /?
shift /?
call /?

其他需要的常用命令

type /?
find /?
findstr /?
copy /?

下面将所有上面的帮助输出到一个文件

echo ver >tmp.txt
ver >>tmp.txt
echo cmd /? >>tmp.txt
cmd /? >>tmp.txt
echo rem /? >>tmp.txt
rem /? >>tmp.txt
echo if /? >>tmp.txt
if /? >>tmp.txt
echo goto /? >>tmp.txt
goto /? >>tmp.txt
echo for /? >>tmp.txt
for /? >>tmp.txt
echo shift /? >>tmp.txt
shift /? >>tmp.txt
echo call /? >>tmp.txt
call /? >>tmp.txt
echo type /? >>tmp.txt
type /? >>tmp.txt
echo find /? >>tmp.txt
find /? >>tmp.txt
echo findstr /? >>tmp.txt
findstr /? >>tmp.txt
echo copy /? >>tmp.txt
copy /? >>tmp.txt
type tmp.txt


十、实际应用

开机后一键启动程序

@echo off
::启动QQ
start "" "D:\Program Files\Tencent\QQLite\Bin\QQScLauncher.exe" /forceuninstall
::启动WeChat
start "" "D:\Program Files\Tencent\WeChat\WeChat.exe" /forceuninstall


简化开机后,手动点击执行启动程序,可以直接写

start "" "D:\Program Files\Tencent\QQLite\Bin\QQScLauncher.exe"