小编MC *_* ND的帖子

为什么cmder不导入用户路径变量?

cmder 中的路径变量仅包含从系统路径变量导入的那些路径。而在普通命令 shell 中,系统路径和用户路径将被连接起来。

我在 cmder_dir\vendor\init.bat 中找到了以下几行:

:: Enhance Path
@set git_install_root=%CMDER_ROOT%\vendor\msysgit
@set PATH=%CMDER_ROOT%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim74;%CMDER_ROOT%;%PATH%
Run Code Online (Sandbox Code Playgroud)

但显然上面的 %PATH% 中只包含系统路径。

我怎样才能向它添加用户路径?

path command-line environment-variables conemu cmder

7
推荐指数
2
解决办法
7924
查看次数

是否可以从 Windows 10 中的“xcopy”获得“errorlevel 1”?

Microsoft文档指出xcopy退出代码是

Exit code   Description
    0       Files were copied without error.
    1       No files were found to copy.
    2       The user pressed CTRL+C to terminate xcopy.
    4       Initialization error occurred. 
            There is not enough memory or disk space, 
            or you entered an invalid drive name 
            or invalid syntax on the command line.
    5       Disk write error occurred.
Run Code Online (Sandbox Code Playgroud)

我运行Windows 10 64bit系统(西班牙语言环境中),我尝试了所有我能想到的得到一个errorlevel 1xcopy,但我已经无法。和一切我的意思是我没有测试的唯一的事情就是/N用在短名称不启用(在我的环境我无法测试它)来源长文件名。通常怀疑不匹配的通配符、不存在的文件名、空文件夹、/D/EXCLUDE/A/M、 …

windows command-line xcopy batch-file windows-10

5
推荐指数
1
解决办法
2886
查看次数