0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

0
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?