0
0

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.

Intellij IdeaでPowerShell Scriptの開発環境づくり

Posted at

はじめに

Jetbrain製品でPowerShell Scriptが書きたい。
ヒントありでコードを書いて、コンソールにWrite-Hostで出力させることが目標です。

開発環境

New ProjectでJavaを選択。
ないも選択せずにNextを選択。
テンプレートも選ばないで、Nextを選択。
Project nameを決めて、Finishを選択。

右クリックからPowerShell Scriptを選択して、新規ファイルを作る。

test.ps1
Write-Host "PowerShell Start"

メニューからRun/Debug...でRunでtest.ps1を選択。
これで、コンソールに出力できました。

課題

あれ、もうちょっとスマートだったような気がしたんだけどなぁ。
srcフォルダとかあるし。
とりあえず、ザクザクはかけそうだけど。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?