执行 exe 文件时出错。 “原因:系统找不到指定的文件”

Posted

技术标签:

【中文标题】执行 exe 文件时出错。 “原因:系统找不到指定的文件”【英文标题】:Getting error while executing an exe file. "Reason: The System can't find the file specified" 【发布时间】:2019-10-31 08:58:29 【问题描述】:

我已在 windows 中使用 iexpresstool 将 test.bat 文件转换为 test.exe。当我运行 test.exe 文件时。我收到错误提示

Error Creating process<command.com /c
c:\Users\Vamsi\AppData\Local\Temp\4\IXP000.TMP\test.bat>.
Reason:The system cannot find the file specified

当我运行test.bat 时,它工作正常。

【问题讨论】:

【参考方案1】:

错误的原因是在使用 iexpress 生成 exe 时。

在 Iexpress 向导中

goto - 安装程序以启动页面

Install Program 选项卡 - 键入 cmd /c "test.bat" 而不是仅从下拉菜单中选择 test.bat

【讨论】:

以上是关于执行 exe 文件时出错。 “原因:系统找不到指定的文件”的主要内容,如果未能解决你的问题,请参考以下文章