bat,PowerShell ,windows

Thumbnail of post image 017
バッチファイル@echo offREM PowerShellで180?600の乱数を生成FOR/F "usebackq tokens=*" %%a IN (`powershell -command "Get-R ...

bat,PowerShell ,windows

Thumbnail of post image 191
バッチファイル

時間まで待つ 23時か判定する

REM 現在の時刻(時)を取得FOR/F "usebackq tokens=*" %%a IN (`powershell -command "(Get- ...

bat,PowerShell ,windows

Thumbnail of post image 145
バッチファイルSET contents=0FOR/F "usebackq" %%a IN (`powershell -command "$lineNumber = ((Get-Content '%~f0 ...

bat,PowerShell ,windows

Thumbnail of post image 078
バッチファイルpowershell -Command "(Get-Content '%~f0') | ForEach-Object {Start-Process 'C:\a.bat' -Argume ...

bat,PowerShell ,windows

Thumbnail of post image 195

バッチファイルpowershell.exe -Command "Clear-RecycleBin -Force -ErrorAction SilentlyContinue"timeout 11powershell -Co ...

bat,PowerShell 

Thumbnail of post image 194
コードpowershell -Command "Start-Process -FilePath 'C:\app\tpad\TeraPad.exe' -ArgumentList 'C:\app\v.txt&# ...

bat,PowerShell 

Thumbnail of post image 200

文字列の長さも同じで小さいファイルに対応します

コードpwsh -command "$bytes = ::ReadAllBytes('C:\app\aviutl\180.aup'); for ($i = ...

bat,power-automate-desktop,PowerShell ,windows

Thumbnail of post image 016

バージョンアップで画面が変わる場合があるので自分で修正できる方がお使いください

バッチファイル

フローの名前をパラメーターとして与えたい場合は4行目以降をパワーシェルのファイルとして保存して実行してください powershe ...

bat,PowerShell ,windows

Thumbnail of post image 027

電卓とメモ帳のサンプルです

inspect

要素を調べるツール

“C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\inspect ...

bat,PowerShell ,windows

Thumbnail of post image 059
コードPowerShell -Command "& (Invoke-Expression -Command ('{' + (((Get-Content %~f0 )) | Out-String )+ '}& ...