LoginSignup
9
8

More than 5 years have passed since last update.

Windowsで特定のフォルダを開くコマンドやスキーム

Last updated at Posted at 2013-12-25

よく迷うのでメモとして書いておきます。

Windowsの深い場所にあったりするジャンプ構文というかスキームというか、そんな記法があります。

「ファイル名を指定して実行」もしくは「プログラムとファイルの検索」ボックスからこれらを入れると特定のフォルダを開いたりすることができます。Windows XPとWindows 7で試していますが、Windows 8以降でも使えるのではないかなと思います。

control.exe

control コマンドの引数として以下のようなものを指定します。

引数名 開くフォルダなど
scannercamera スキャナとカメラ
folders フォルダオプション
netconnections ネットワーク接続の仮想フォルダ
schedtasks タスクの仮想フォルダ
admintools 管理ツール
fonts フォント
printers プリンタ
userpasswords2 ユーザアカウント
userpasswords ユーザアカウント旧来のやつ
infrared 赤外線 (あるばあいのみ)
telephony 所在地情報
netware
keyboard キーボードのプロパティ
mouse マウスのプロパティ
international 地域と言語のオプション
ports システムのプロパティのコンピュータ名のタブにフォーカス
date/time 日付と時刻のプロパティ
color 画面のプロパティのスクリーンセーバにフォーカス
desktop 画面のプロパティのテーマタブにフォーカス
panel コントロールパネルを開く

その他、パスが通っているところにある *.cpl ファイルを渡すとコントロールパネルの対応するウィンドウがオープンするようです。

shellスキーム

Windowsにはshell:スキームというものがあり、URLのようにこれを上述のボックスに入れてEnterを押すことによってフォルダを開いたりすることができます。

スキーム 開くフォルダなど
shell:Administrative Tools 現在ログオンしているユーザーの管理フォルダ
shell:AppData 現在ログオンしているユーザーの ApplicationData フォルダ
shell:Common Administrative Tools AllUsers の管理フォルダ
shell:Common AppData AllUsers の ApplicationData フォルダ
shell:Common Desktop 現在ログオンしているユーザーのデスクトップ
shell:Common Documents AllUsers の Documents フォルダ
shell:Common Favorites AllUsers のお気に入りフォルダ
shell:Common Programs AllUsers のプログラムフォルダ
shell:Common Startup AllUsers のスタートアップフォルダ
shell:Common Templates AllUsers の Templates フォルダ
shell:CommonProgramFiles %SystemDrive%\Program Files\Common Files フォルダ
shell:ConnectionsFolder ネットワーク接続フォルダ
shell:ControlPanelFolder コントロールパネル
shell:Cookies 現在ログオンしているユーザーのクッキーフォルダ
shell:DesktopFolder 現在ログオンしているユーザーのデスクトップ
shell:DriveFolder マイコンピュータ
shell:Favorites 現在ログオンしているユーザーのお気に入りフォルダ
shell:Fonts Fonts フォルダ
shell:History 現在ログオンしているユーザーのヒストリーフォルダ
shell:InternetFolder IE 起動
shell:Local AppData 現在ログオンしているユーザーの Local Settings\Application Data フォルダ
shell:My Pictures 現在ログオンしているユーザーのマイピクチャーフォルダ
shell:NetHood 現在ログオンしているユーザーの NetHood フォルダ
shell:NetworkFolder マイネットワークフォルダ
shell:Personal 現在ログオンしているユーザーのマイドキュメントフォルダ
shell:PrintHood 現在ログオンしているユーザーの PrintHood フォルダ
shell:PrintersFolder プリンタと FAX フォルダ
shell:Profile 現在ログオンしているユーザーのプロフィールフォルダ
shell:ProgramFiles プログラムフォルダ
shell:Programs 現在ログオンしているユーザーのプログラムフォルダ
shell:Recent 現在ログオンしているユーザーの Recent フォルダ
shell:RecycleBinFolder 「ごみ箱」フォルダ
shell:SendTo 現在ログオンしているユーザーの SendTo フォルダ
shell:System System32 フォルダ
shell:SystemX86 System32 フォルダ
shell:Templates 現在ログオンしているユーザーの Templates フォルダ
shell:Windows %SystemDrive%\WinNT フォルダ
9
8
2

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
9
8