cmd PATH错误-\ common在此时是意外的 [英] cmd PATH error - \common was unexpected at this time

查看:199
本文介绍了cmd PATH错误-\ common在此时是意外的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在.bat文件中添加一行,如下所示:

i am adding a line in a .bat file look like this:

path %~dp0;%PATH%

但是显示此消息:

\ common这时出乎意料.

\common was unexpected at this time.

让我告诉你路径.

PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
s (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\AMD AP
P\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windo
ws;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Progr
am Files (x86)\ATI Technologies\ATI.ACE\Core-Static\;C:\Program Files (x86)\Sony
\VAIO Startup Setting Tool;;C:\Program Files (x86)\Windows Live\Shared;C:\Progra
m Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P
rogram Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\C
alibre2\

这是路径.我要添加(%〜dp0)的路径是:

This is the path. The path i want to add (%~dp0) is:

C:\Users\Workspace\Desktop\Files\Programming\GoogleSearch\

这对我很重要.
谢谢.

This is important for me.
Thank you.

推荐答案

您可以尝试setx,如此答案中所示....

You could try setx as shown in this answer....

https://serverfault .com/questions/88363/如何在批处理文件中设置全局路径环境

这篇关于cmd PATH错误-\ common在此时是意外的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆