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.

PowerShell 基礎知識

Last updated at Posted at 2020-05-18

バッチファイルの実行

hoge.ps1
Start-Process -FilePath C:\hoge.bat 

※実行したいファイルのパスが環境変数に設定されていれば、ファイル名のみで実行できる

以下オプション。
-FilePath ""で実行ファイルのパス指定ができる
-ArgumentList 実行ファイルへ渡す引数を指定できる
-Wait 実行中の処理が完了するまでPowerShellを待機させる
-NoNewWindow 処理実行の際に別ウィンドウを立ち上げない

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?