我正在编写.bat文件来启动两个程序,到目前为止还没有成功。我是按照指南来的。
@echo off
cd "D:CRCR 0.4.0"
start "" "D:CRCR 0.4.0Chernobyl Relay Chat Rebirth.exe"
cd "D:MO2"
start "" "D:MO2ModOrganizer.exe moshortcut://:Anomaly Launcher"
exit
每当我尝试启动批处理文件时,它告诉我"Windows找不到'D:MO2ModOrganizer.exe "moshortcut://:Anomaly Launcher'。请确保您输入的名称正确,然后再试一次。">
我试过从这些行中删除'start',从cd行中删除引号,等等。我怎样才能使它工作?
您可能想将moshortcut://:Anomaly Launcher
作为参数传递。
在这种情况下,还应该分隔字符串:
start "" "D:MO2ModOrganizer.exe" "moshortcut://:Anomaly Launcher"
否则Windows将把路径解释为D:MO2ModOrganizer.exe moshortcut://:Anomaly Launcher
而不是D:MO2ModOrganizer.exe
,并假设整个字符串是路径的一部分。