【问题标题】:running a command line application outside of its folder (windows)在其文件夹之外运行命令行应用程序(Windows)
【发布时间】:2011-01-02 14:02:22
【问题描述】:

我以前做过一次,现在忘记了。

例如,我需要运行

c:/myfolder/anotherfolder/app.bat

来自任何地方,即

c:/app.bat or c:/genericfolder/app.bat or c:/thisfolder/app

是设置环境变量吗?

【问题讨论】:

  • 因为我正在寻找一个命令行专家!授予它应该只是 windows 标签。 - 已删除。
  • 您需要将c:\myfolder\anotherfolder添加到PATH

标签: windows command-line command-line-interface


【解决方案1】:

最简单的方法是将应用的位置添加到您的“PATH”环境变量中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-19
    • 2012-10-26
    • 1970-01-01
    • 1970-01-01
    • 2015-11-23
    • 1970-01-01
    相关资源
    最近更新 更多