コマンドプロンプト/dirコマンド出力の並び順パラメーター
の編集
Top
/
コマンドプロンプト
/
dirコマンド出力の並び順パラメーター
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
#navi(../) * dirコマンドの並び順パラメーター [#y07ca0ee] 本資料はdirコマンドの並び順を指定するパラメーターの使用方法について記述しています。 #contents #htmlinsertpcsp(win-top.html,win-sp.html) * 関連資料 [#jb7d2b38] -[[ファイル・ディレクトリ一覧を表示する・dir>コマンドプロンプト/ファイル・ディレクトリ一覧を表示する・DIR]] * 並び順パラメーター [#t4b81d50] 並び順を指定するには、/Oパラメータの後に並べ替え指定パラメーターを指定します。~ 以下に並び替えパラメーターと並び替えの例を記します。 並び順パラメーター |D|ファイル日付で並び替え| |E|ファイル拡張子で並び替え| |G|ディレクトリを優先する| |N|ファイル名で並び替え| |S|ファイルサイズで並び替え| |-|上記の並び替えオプションの前につけると逆順になる| ** ファイル日付で並び替え [#n0eeb9e2] c:\Windows>dir /od ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2008/01/02 13:02 3,540 TSSysprep.log 2008/01/02 13:12 74 PidList.ini 2008/01/02 13:12 200,704 PLFSetI.exe 2008/01/02 13:16 <DIR> PCHEALTH 2008/01/02 13:36 3,043 DtcInstall.log 2008/01/02 13:36 <DIR> Panther 2008/01/02 13:36 558 diskinfo.txt 2008/05/14 17:10 18 listvol.txt 2008/12/23 16:49 0 Acer.tag 2009/04/10 20:41 309,768 GVUni.exe 2009/04/16 18:45 106,496 FixUVC.exe 2009/06/03 12:41 526 InstallWinRELP.cmd 2009/06/11 05:30 48,265 HomePremium.xml ** ディレクトリを優先し日付で並び替え [#n638bf4c] c:\Windows>dir /ogd ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2008/01/02 13:16 <DIR> PCHEALTH 2008/01/02 13:36 <DIR> Panther 2009/07/14 11:34 <DIR> LiveKernelReports 2009/07/14 11:34 <DIR> tracing 2009/07/14 11:35 <DIR> SchCache 2009/07/14 12:20 <DIR> AppCompat 2009/07/14 12:20 <DIR> PLA 2009/07/14 12:20 <DIR> security 2009/07/14 12:20 <DIR> Registration ** ディレクトリ優先でファイル名は逆順で並び替え [#gc806c59] c:\Windows>dir /og-n ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2012/06/09 10:41 <DIR> winsxs 2010/05/31 23:45 <DIR> WindowsMobile 2009/07/14 14:32 <DIR> Web 2009/07/14 12:20 <DIR> Vss 2009/07/14 14:32 <DIR> twain_32 ** ファイル優先でファイルサイズ順で逆順で並び替え [#td43f30b] c:\Windows>dir /o-g-s ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2011/02/25 15:19 2,871,808 explorer.exe 2012/06/10 16:46 1,641,056 WindowsUpdate.log 2009/06/24 11:43 831,488 RtlExUpd.dll 2012/03/26 22:24 772,464 PFRO.log 2009/07/14 10:39 733,696 HelpPane.exe 2009/07/14 10:39 427,008 regedit.exe 2009/08/05 17:00 329,736 UNINST32.EXE 2009/06/11 05:52 316,640 WMSysPr9.prx #htmlinsertpcsp(win-btm.html,win-sp.html)
タイムスタンプを変更しない
#navi(../) * dirコマンドの並び順パラメーター [#y07ca0ee] 本資料はdirコマンドの並び順を指定するパラメーターの使用方法について記述しています。 #contents #htmlinsertpcsp(win-top.html,win-sp.html) * 関連資料 [#jb7d2b38] -[[ファイル・ディレクトリ一覧を表示する・dir>コマンドプロンプト/ファイル・ディレクトリ一覧を表示する・DIR]] * 並び順パラメーター [#t4b81d50] 並び順を指定するには、/Oパラメータの後に並べ替え指定パラメーターを指定します。~ 以下に並び替えパラメーターと並び替えの例を記します。 並び順パラメーター |D|ファイル日付で並び替え| |E|ファイル拡張子で並び替え| |G|ディレクトリを優先する| |N|ファイル名で並び替え| |S|ファイルサイズで並び替え| |-|上記の並び替えオプションの前につけると逆順になる| ** ファイル日付で並び替え [#n0eeb9e2] c:\Windows>dir /od ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2008/01/02 13:02 3,540 TSSysprep.log 2008/01/02 13:12 74 PidList.ini 2008/01/02 13:12 200,704 PLFSetI.exe 2008/01/02 13:16 <DIR> PCHEALTH 2008/01/02 13:36 3,043 DtcInstall.log 2008/01/02 13:36 <DIR> Panther 2008/01/02 13:36 558 diskinfo.txt 2008/05/14 17:10 18 listvol.txt 2008/12/23 16:49 0 Acer.tag 2009/04/10 20:41 309,768 GVUni.exe 2009/04/16 18:45 106,496 FixUVC.exe 2009/06/03 12:41 526 InstallWinRELP.cmd 2009/06/11 05:30 48,265 HomePremium.xml ** ディレクトリを優先し日付で並び替え [#n638bf4c] c:\Windows>dir /ogd ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2008/01/02 13:16 <DIR> PCHEALTH 2008/01/02 13:36 <DIR> Panther 2009/07/14 11:34 <DIR> LiveKernelReports 2009/07/14 11:34 <DIR> tracing 2009/07/14 11:35 <DIR> SchCache 2009/07/14 12:20 <DIR> AppCompat 2009/07/14 12:20 <DIR> PLA 2009/07/14 12:20 <DIR> security 2009/07/14 12:20 <DIR> Registration ** ディレクトリ優先でファイル名は逆順で並び替え [#gc806c59] c:\Windows>dir /og-n ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2012/06/09 10:41 <DIR> winsxs 2010/05/31 23:45 <DIR> WindowsMobile 2009/07/14 14:32 <DIR> Web 2009/07/14 12:20 <DIR> Vss 2009/07/14 14:32 <DIR> twain_32 ** ファイル優先でファイルサイズ順で逆順で並び替え [#td43f30b] c:\Windows>dir /o-g-s ドライブ C のボリューム ラベルは win7hdd です ボリューム シリアル番号は 3EA0-EC76 です c:\Windows のディレクトリ 2011/02/25 15:19 2,871,808 explorer.exe 2012/06/10 16:46 1,641,056 WindowsUpdate.log 2009/06/24 11:43 831,488 RtlExUpd.dll 2012/03/26 22:24 772,464 PFRO.log 2009/07/14 10:39 733,696 HelpPane.exe 2009/07/14 10:39 427,008 regedit.exe 2009/08/05 17:00 329,736 UNINST32.EXE 2009/06/11 05:52 316,640 WMSysPr9.prx #htmlinsertpcsp(win-btm.html,win-sp.html)
テキスト整形のルールを表示する