我有从一个.jar转换.exe文件。 这是一个基于命令的应用程序,所以我必须用批处理脚本启动它。下面是批处理脚本:执行一个命令行.exe文件
@echo off
cd C:\desktop\plant-text-adventure-win
start planttextadventure
pause
当我双击该批处理脚本,发生这种情况:Windows could not find 'planttextadventure'. Please confirm if you have input the correct name and retry.
我不知道发生了什么,我不知道有关cmd
,因为我使用的是Mac,但我可以确认我有一个名为planttextadventure.exe
一个名为plant-text-adventure-win
文件夹中的可执行文件。
[Windows命令提示符不是* DOS提示符!](https://scalibq.wordpress.com/2012/05/23/the-windows-command-prompt-is-not-a-dos-提示/) – aschipfl