简体   繁体   English

Sublime Text 3083 CMD.exe错误

[英]Sublime Text 3083 CMD.exe error

just upgraded to 3083 from 3065, every time i run a script I get: 刚从3065升级到3083,每次运行脚本时,我都会得到:

CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

The script still runs but it makes me uncomfortable seeing that every time I do a build. 该脚本仍在运行,但是每次执行构建时都会让我感到不舒服。 This was not occuring in 3065, how can I elminate this issue? 3065年没有发生这种情况,如何消除此问题?

Because having a UNC directory as a default can cause programs started in the console to crash if the console is closed. 因为将UNC目录作为默认目录可能会导致如果控制台关闭则在控制台中启动的程序崩溃。 In testing I have never seen a program crash. 在测试中,我从未见过程序崩溃。 It's probably meant for very old programs. 这可能意味着非常老的程序。

There is a registry key to allow UNC paths. 没有允许UNC路径的注册表项。

HKEY_CURRENT_USER\Software\Microsoft\Command Processor
DisableUNCCheck = DWord (1 = true, 0 or absent = false)

However CMD won't let you change to one. 但是CMD不允许您更改为1。 The only way to make this happen is to start CMD from a shortcut with the default directory set to a UNC path (and probably any other command that allows default path to be set for a program being started). 做到这一点的唯一方法是从默认目录设置为UNC路径的快捷方式启动CMD(可能还有其他任何允许为正在启动的程序设置默认路径的命令)。

So how are you starting it? 那么,您如何开始呢? Look there for the directory being specified. 在此处查找指定的目录。 Is anything on a network, or specified as if on a network (ie 127.0.0.1 or localhost or machinename ) 是网络上的任何东西,还是指定为好像在网络上的任何东西(即127.0.0.1或localhost或machinename

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM