1.匹配搜索
tasklist|findstr mysqld.exe 或者搜索端口号 netstat -ano | findstr 80
2.杀死某个进程
taskkill /pid {pid} /F 或者按名称 taskkill /im mysqld.exe /f
3.查看进程启动指令
wmic process where caption="mysqld.exe" get caption,commandline /value
4.数据库启动指令
db_path\bin\mysqld.exe --defaults-file=db_path\my.ini
5.设置变量
set current_dir=%cd%
6.复制文件夹
xcopy "%current_dir%/webapp_tmp" "%current_dir%/webapp" /S /E /Y /I
7.复制文件
copy "%current_dir%\webapp_tmp\Events.php" "%current_dir%/webapp"
8.删除临时文件夹
rd /s /Q "%current_dir%/webapp_tmp"
9.创建文件夹
IF NOT EXIST "%current_dir%/webapp" MD "%current_dir%/webapp"