Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 获取帮助和/之间的区别?在powershell中_Windows_Powershell_Cmd - Fatal编程技术网

Windows 获取帮助和/之间的区别?在powershell中

Windows 获取帮助和/之间的区别?在powershell中,windows,powershell,cmd,Windows,Powershell,Cmd,当我使用命令icacls/?时,它会显示有关命令icacls的信息,但当我使用命令Get Help icacls时,它会显示未找到命令。这意味着powershell中的/?和获取帮助之间存在一些差异。但是有什么区别呢?正如怀疑论者和Jereon Mostert在评论中提到的,事实证明,获取帮助用于获取有关Powershell cmdlet的信息,/?用于获取有关基本上是外部可执行文件的命令的信息。icacls不是Powershell cmdlet,而是icacls.exe。只有PS命令具有PS帮

当我使用命令
icacls/?
时,它会显示有关命令icacls的信息,但当我使用命令
Get Help icacls
时,它会显示未找到命令。这意味着powershell中的
/?
获取帮助
之间存在一些差异。但是有什么区别呢?

正如怀疑论者和Jereon Mostert在评论中提到的,事实证明,
获取帮助
用于获取有关Powershell cmdlet的信息,
/?
用于获取有关基本上是外部可执行文件的命令的信息。

icacls不是Powershell cmdlet,而是icacls.exe。只有PS命令具有PS帮助。
Get Command
可以告诉您PowerShell cmdlet和外部应用程序之间的区别。Windows命令处理器以Windows语言输出的帮助信息,用于
cmd.exe
的内部命令在使用
/?
或使用
帮助命令执行时的帮助。对于文件扩展名为
%SystemRoot%\System32
.exe
.com
的外部可执行文件,将以可执行文件的语言(通常为英语)或操作系统的语言(如果可用)输出帮助,并使用
/?
运行它们。对于后者,
help命令
的作用类似于
help chcp
。在命令提示窗口中运行
help
时,将输出不完整的Windows命令列表,并给出简要说明。PowerShell命令
获取帮助
仅适用于PowerShell cmdlet。提供有关Windows命令和PowerShell cmdlet的CMD和PowerShell的详细信息。