This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Uniflash 7.1 独立命令行工具中的相对路径

Guru**** 2582405 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1098272/relative-path-in-uniflash-7-1-standalone-command-line-tool

您好,

我生成了自定义的独立命令行包。

我可以从本地驱动器执行默认命令,但不能从网络驱动器执行。

在网络驱动器上,路径错误。

这是我收到的错误:
以上述路径作为当前目录启动了cmd.EXE。
不支持UNC路径。  默认为Windows目录。

 C:\Windows\user_files\configs\F2.8027万.CCXML

我使用windows power shell调用bat文件。

.\dslite.bat

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好,

    问题是用于执行独立软件包的dslite.bat文件调用了不支持UNC路径的CMD。

    因此有两种选择。

    第一个(也是推荐的)方法是将网络驱动器映射到驱动器号。 使用驱动器号而不是UNC路径打开PowerShell到目录。

    第二个是修改bat文件 ,以便从PowerShell而不是cmd运行命令。

    谢谢

    KI