在cmd窗口中打开另一个cmd窗口并执行命令 start cmd命令 /K 执行命令后不关闭 /C 执行命令后关闭 start cmd /K "yarn start:back" && yarn start 应用场景: 前端中一条命令同时打开前端和模拟后端。