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?

Notion Calendarをコマンドで起動する(エイリアスに登録する)【PowerShell】

0
Last updated at Posted at 2025-12-19

旧名称である「Cron」がURLスキームとして残っているため、以下のコマンドで起動できます。

explorer cron:

実行ファイルのパスをハードコードしないため、定義がすっきり&メンテナンスフリーです!

profile.ps1
function cal { explorer cron: }

explorerではなくstartでも動作しますが、起動時にログが表示されてしまうためexplorer推奨です。

おまけ: アプリ名で指定したい場合

コード上も "Notion Calendar" と明記して可読性を高めたい場合 は、以下のような関数を使う方法もあります。

アプリ名で検索して、最初に見つかったアプリのAppIDを使って起動
function Start-App($Name) {
    explorer "shell:AppsFolder\$((Get-StartApps $Name | select -f 1).AppID)"
}
function cal { Start-App "Notion Calendar" }

他のアプリに応用する場合にも便利ですね!

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?