1
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 1 year has passed since last update.

Powershell でアプリを起動する方法

Last updated at Posted at 2022-11-12

はじめに

私はPowershell超初心者です。業務でPowershellを使用する機会は今まで時々あったのですが、
あまり意味をわからず実行していました。なので少しづつ自主的に学習を始めました。

アプリ起動コマンド

今回はいちいちGUIで開くのがめんどくさいアプリを一発で起動できるファイルを作成しました。
カレンダーをすぐ見たかったので試しに作ってみました。(カレンダーアイコンをクリックすればよいと言われるとそれまでなのですが、、)

Start-Process -FilePath "/対象アプリがあるフォルダ/Calendar.app”

上記のようになります。ファイルの拡張子は「.ps1」です。

1
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
1
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?