LoginSignup
0
1

More than 1 year has passed since last update.

BATファイルからpowershellスクリプトを実行する

Posted at

bat ファイルから powershell スクリプトを読み出す方法です。

# Execute powershell script
powershell -NoProfile -ExecutionPolicy Unrestricted -File exe-samplescript.ps1

引数はそのまま 引数を書けば Powershell Scirptの引数として認識されます。

powershell -NoProfile -ExecutionPolicy Unrestricted -File exe-samplescript.ps1 -path "c:\test" -output ".\test.txt"

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1