powershell
PowerShell相关知识学习、积累、分享。
Alex4319
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PowerShell字符串操作
替换 // ".\MatchText.class" --> ".\MatchText." ".\MatchText.class".Remove($className.Length - 5) 移除 // ".\MatchText.java" --> ".\MatchText.class" ".\MatchText.java".Replace("java", "class") ...原创 2020-02-16 19:38:35 · 568 阅读 · 0 评论 -
PowerShell脚本传参
脚本定义 // script file name is "script.ps1" // input parameter param([string]$fileName) // print parameter $fileName Write-Output $fileName 脚本调用 .\script.ps1 .\MatchText.java原创 2020-02-16 19:00:59 · 1495 阅读 · 0 评论 -
PowerShell函数操作
函数定义 # .\MatchText.java --> MatchText function GetClassName([string]$javaFileName) { $className = $javaFileName $className = $className.Remove($className.Length - 5) $className = $class...原创 2020-02-16 18:50:44 · 236 阅读 · 1 评论 -
PowerShell脚本文件无法加载运行
// 显示Restricted,不允许执行任何脚本 Get-ExecutionPolicy // RemoteSigned 可执行任何脚本,需要管理员权限,才能设置成功 Set-ExecutionPolicy RemoteSigned原创 2020-02-16 18:43:58 · 495 阅读 · 0 评论 -
PowerShell文件操作
# 新建文件和目录 // new file New-Item app-build.bat -type file // new directory New-Item app-build.bat -type directory原创 2020-02-16 18:37:21 · 903 阅读 · 0 评论
分享