始め方
制御文
- PowerShell if文のサンプル
- PowerShell switch文 条件分岐を行うサンプル
- PowerShell for文 処理を繰り返すサンプル
- PowerShell while文とdo while文のサンプル
文字列操作
- PowerShell 文字列を結合するサンプル
- PowerShell Substring 文字列を切り出す
- PowerShell Contains 文字列に指定の文字があるか
- PowerShell IndexOf 文字列の位置を取得する
- PowerShell Replace 文字列を置き換える
- PowerShell Split 文字列を分割して配列にする
- PowerShell StartsWith 文字列の始まり/終わりを確認
- PowerShell 大文字と小文字を変換(ToLower/ToUpper)
- PowerShell 文字列の先頭末尾の空白を除去(Trim)
- PowerShell PadLeft 頭ゼロをつける