Windows11 | バッチファイルをタスクバーにピン留めする方法
2023-06-02Windows11 タスクバー,Windows11

Windows11PCでバッチファイル(.bat)をタスクバーにピン留めする方法を紹介しています。
- HP ノートパソコン HP 17s
- OS Windows11 21H2
バッチファイルをタスクバーにピン留めする
バッチファイル(.bat)をタスクバーにピン留めする方法は基本的にはWindows10と変わりませんが、作成したショートカットのコンテキストメニューにて「タスクバーにピン留めする」のコマンドが「その他のオプションを表示」内にしかないので最初は戸惑うかもしれません。
タスクバーにピン留めしたいバッチファイルを用意したらコンテキストメニューから「ショートカットの作成」を実行して作成します。


アプリではないファイルのショートカットは、そのままではタスクバーにピン留めが実行できません。
作成したショートカットのプロパティを開いて「ショートカット」タブにある「リンク先(T)」の先頭に以下のパスを追加します。
cmd.exe /c “C:~
適用後は自動でコマンド・プロンプトのパスが生成され以下のような状態になります。
C:\Windows\System32\cmd.exe /c “C:~
これでリンク先のファイルはコマンドプロンプトの実行ファイルとなり、タスクバーにピン留めする事が可能となります。
Windows11では右クリックメニュー(コンテキストメニュー)から「その他のオプションを表示」を開いた場所にしか「タスクバーにピン留めする」が表示されません。
「スタートにピン留めする」はデフォルトのコンテキストメニューに追加されます。


この操作により、タスクバーにバッチファイルをピン留めする作業が完了します。


タスクバーにピン留めしたバッチファイル(のショートカット)にファイルやフォルダをドロップして実行する、といった事はできませんので注意が必要です。
Posted by Yousuke.U
関連記事


Windows11 | ディスクの容量、空き容量を確認する方法
Windows11でPCに搭載しているHDDやSSDのディスクの容量、空き容量を ...


Windows11 | タスクマネージャーを開く方法
Windows11PCでタスクマネージャーを開く方法を紹介しています。 Wind ...


Windows11 | デスクトップのファイルやタスクバーが消えてしまった場合の対処方法
Windows11PCでデスクトップのファイルやタスクバーが完全に消えてしまった ...


Windows11 | 拡縮したデスクトップアイコンを標準サイズに戻す方法
Windows11で拡大または縮小したデスクトップアイコン、すなわちデスクトップ ...


Windows11 | タスクバーからウィジェットを非表示にする方法
Windows11からニュースなどを表示するウィジェットのアイコンがデフォルトの ...


Windows11 | ペイント アプリと実行ファイルの場所
Windows11のペイント アプリと、その実行ファイルはある場所を紹介していま ...


Windows11 | タスクバーに「✘」が表示され、IMEが無効ですとなる原因
Windows11でタスクバーに「X(バツマーク)」が表示され、IMEが無効です ...


Windows11 | タスクバーから音量ミキサーを開く方法
Windows11PCで音量ミキサーの開き方を紹介しています。 確認環境 HP ...


Windows11 | フォントを追加する方法
Windows11で新しくフォントを追加する方法を紹介しています。 確認環境 H ...


Windows11 | OneDriveを再インストールする方法
Windows11でアンインストールしたOneDriveを再インストールする方法 ...


Windows11 | CPUの型番を確認する方法
Windows11パソコンで搭載しているCPUを確認する方法を紹介しています。 ...


Windows11 | McAfee(マカフィー)を完全にアンインストールする
Windows11PCでアンインストールツールを使ってMcAfee(マカフィー) ...


Windows11 | Amazon アプリストア経由でAndroidアプリをダウンロード、実行する手順
Windows11で搭載された仮想Android実行環境「Windows Sub ...


Windows11 | システム要件からPCの購入・買い替え時を考える
Windows11とそのシステム要件の発表により、PCの購入または買い替え時を考 ...


Windows11 | OSのエディション、バージョンを確認する方法
Windows設定やコマンド プロンプト、PowerShellでWindows1 ...
ディスカッション
コメント一覧
まだ、コメントがありません