【发布时间】:2018-06-12 10:06:29
【问题描述】:
在 Windows Server 2012 上运行。
我已经在我的机器上安装了 Anaconda,它会自动将相关路径添加到 PATH 变量中:
C:\Users\user1\tools\Anaconda3;C:\Users\user1\tools\Anaconda3\Scripts;
在 cmd 中,它不允许我使用 anaconda 来执行批处理文件。我必须使用anaconda.bat。
这对所有的批处理文件都是一样的,我已经测试了很多。知道为什么,如果是,如何解决?
【问题讨论】:
-
因为你搞砸了
PATHEXT环境变量How to run batch script without using *.bat extension, Why do I have to type .exe after all commands in windows 10?, What would cause an EXE extension to be mandatory at the command line and how can it be resolved in the current shell?, Server 2008 won't run executables from CMD prompt without .exe extension
标签: python batch-file cmd anaconda windows-server-2012