我正在为我的游戏引擎写一个简短的批处理脚本,它将定位计算机的java.exe (搜索JRE)。然后使用它来启动初始的python脚本。
我的问题是当我运行这个脚本时-它的响应是:
"Java\jre7\bin\java.exe" was unexpected at this time.任何建议和/或解决方案都将不胜感激。
@echo off
color 0e
title py console
cd "C:\Program Files (x86)\"
if exists "Java\jre7\bin\java.exe" (
cd "C:\Program Files (x86)\Java\jre7\bin\"
start "" "java.exe" -jar "C:\Users\USER\Desktop\RPG Engine\jython.jar" "C:\Users\USER\Desktop\RPG Engine\init.py"
)
pause >nul发布于 2014-03-19 09:22:03
是exist,不是exists
if exist "Java\jre7\bin\java.exe" (
...https://stackoverflow.com/questions/22494339
复制相似问题