批处理脚本分析:启动多个程序 (app.exe, edbservice.exe, wbrchart.exe)
@echo off set 'CURRENT_DIR=%cd%' cd '%CURRENT_DIR%' start app.exe start edbservice.exe start wbrchart.exe
这段代码用于启动三个程序:app.exe, edbservice.exe 和 wbrchart.exe。
代码解释:
- @echo off:关闭命令行窗口的回显功能,使代码运行时不显示命令行语句。
- set 'CURRENT_DIR=%cd%': 定义一个环境变量 'CURRENT_DIR',存储当前目录的路径。
- cd '%CURRENT_DIR%': 将当前目录切换到 'CURRENT_DIR' 所保存的目录路径。
- start app.exe:在后台启动 app.exe 程序。
- start edbservice.exe:在后台启动 edbservice.exe 程序。
- start wbrchart.exe:在后台启动 wbrchart.exe 程序。
这段代码通常用于在 Windows 系统中将多个程序设置为开机自动启动。
原文地址: https://www.cveoy.top/t/topic/l6Lx 著作权归作者所有。请勿转载和采集!