powershell notes
命令模式 //字符串不需要加引号,除变量和圆括号中的内容外的所有内容均可看作字符串copy users.txt accounts.txt
copy $src $dest
write-host 2+2
表达式模式 //以最高级别语言分析方法来进行分析:若为数字,则原样表示该数字;若为字符串,则需要加引号
2+2
"Hello" + " world"
$a = "hi"
$a.length * 13
混合模式 //模式发现过程从圆括号内开始
Write-Host ((Get-Date) - (Get-Date).date)
命令解析优先级
别名
函数
cmdlet
脚本
可执行文件
正常文件
页:
[1]