cd |
ディレクトリを変更する |
cd C:\Users\Username\Documents |
dir |
現在のディレクトリの内容を一覧表示 |
dir |
mkdir |
新しいディレクトリを作成 |
mkdir NewFolder |
rmdir |
空のディレクトリを削除 |
rmdir OldFolder |
del |
ファイルを削除 |
del filename.txt |
copy |
ファイルをコピー |
copy file1.txt file2.txt |
move |
ファイルを移動または名前を変更 |
move oldname.txt newname.txt |
ren |
ファイルまたはディレクトリの名前を変更 |
ren oldname.txt newname.txt |
cls |
画面をクリア |
cls |
echo |
テキストを表示する |
echo Hello World |
type |
ファイルの内容を表示 |
type filename.txt |
find |
テキストを検索 |
find "keyword" filename.txt |
help |
コマンドのヘルプを表示 |
help dir |
exit |
コマンドプロンプトを終了 |
exit |
set |
環境変数を設定 |
set PATH=C:\newpath;%PATH% |
path |
現在のPATH環境変数を表示 |
path |
tasklist |
実行中のタスクを一覧表示 |
tasklist |
taskkill |
実行中のタスクを強制終了 |
taskkill /F /IM notepad.exe |
ipconfig |
ネットワーク設定を表示 |
ipconfig /all |
ping |
ネットワーク接続をテスト |
ping google.com |
netstat |
ネットワーク接続、ルーティングテーブル、インターフェース統計情報を表示 |
netstat -an |
tracert |
パケットが到達する経路を表示 |
tracert google.com |
systeminfo |
システム情報を表示 |
systeminfo |
shutdown |
コンピュータをシャットダウンまたは再起動 |
shutdown /s /f /t 0 |
sfc |
システムファイルチェッカーを実行 |
sfc /scannow |
chkdsk |
ディスクをチェックし、エラーを修復 |
chkdsk C: /f |
diskpart |
ディスクパーティションを管理 |
diskpart |
format |
ディスクをフォーマット |
format E: /FS:NTFS |
xcopy |
ディレクトリとファイルをコピー |
xcopy source destination /s /e |
robocopy |
高機能なファイルとディレクトリのコピー |
robocopy source destination /mir |
attrib |
ファイルまたはディレクトリの属性を変更 |
attrib +r filename.txt |
tree |
ディレクトリ構造をグラフィカルに表示 |
tree /f |
regedit |
レジストリエディタを起動 |
regedit |
taskmgr |
タスクマネージャを起動 |
taskmgr |
msconfig |
システム構成ユーティリティを起動 |
msconfig |
calc |
電卓アプリを起動 |
calc |
notepad |
メモ帳を起動 |
notepad |
explorer |
エクスプローラを起動 |
explorer C:\ |
mstsc |
リモートデスクトップ接続を起動 |
mstsc |
powershell |
PowerShellを起動 |
powershell |