0

我正在使用 spring shell 开发命令行界面应用程序,我在 windows 机器上面临一个问题,在 Linux 机器上我可以通过 using 执行 OS 命令!<OS Command>,但这在 windows 机器上不起作用。弹簧壳 说

Unable to execute command, The system can not find the specified command.

请让我知道如何在 Windows 平台上运行的 Spring shell 中执行 Windows 命令(日期、时间、路径等命令)

提前致谢。

4

1 回答 1

1

日期、时间、路径等是 windows 命令 shell 的内置命令。似乎这些内置命令在 spring-shell 中不可用,spring-shell 会处理在 windows 路径中以文件形式存在的命令。

诸如 calc ( ! calc) 等非内置的 Windows 命令可用。

于 2014-11-29T16:45:10.500 回答