bat,PowerShell ,windows

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

bat,PowerShell ,windows

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

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

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

bat,PowerShell ,windows

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

bat,PowerShell ,windows

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

bat,PowerShell ,windows

Thumbnail of post image 161

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

bat,PowerShell 

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

bat,PowerShell 

Thumbnail of post image 060

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

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

bat,power-automate-desktop,PowerShell ,windows

Thumbnail of post image 048

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

バッチファイル

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

bat,PowerShell ,windows

Thumbnail of post image 083

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

inspect

要素を調べるツール

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

bat,PowerShell ,windows

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