pwsh
修复 GitLab 的 CI Runner 提示找不到 pwsh 执行文件
本文告诉大家如何修复使用 GitLab 的 Runner 做 CI 时提示 "pwsh": executable file not found in %PATH% 错误 ......
pwsh string cmd
compose multiple variables into a command line, then execute it. ```ps1 $dest="a:\des" $source="b:\src" $cmdlink="cmd" $cmdPart1="/c", "mklink", "/j" ......
pwsh sed
```pwsh $config="a:/etc/data.xml" $fromString='' $toString = ' false ' (Get-Content $config).replace($fromString, $toString) | Set-Content $config ``` ......
pwsh fs
$delPath="x:\y\z\" If (Test-Path $delPath){ Remove-Item $delPath -Recurse -Force } $tpath = "u:\v\w" If(!(test-path -PathType container $tpath)) { New ......