便利なワザ
矢印キーの上下を入力するとコマンドの履歴が表示される
Tabキーを押すとファイル名が補完される
マウスカーソルでコマンドプロンプトの一部を選択・コピーできる
cd \
ルートディレクトリ(ドライブのルート)への移動
cd C:\myc
ディレクトリ(フォルダ)の移動
mkdir C:\myc
ディレクトリ(フォルダ)の作成
notepad hello.c
ファイルを指定してメモ帳を起動
cl.exe hello.c
hello.c をコンパイルする (hello.exe が生成される)
hello.exe
hello.exe を実行する
その他のコマンド
explorer C:\myc
Windows エクスプローラで C:\myc を開く
dir
現在のディレクトリのファイル一覧を出力する
echo hello cmd > test.txt
hello cmd という文字列をファイル test.txt に出力する
type test.txt
test.txt (テキストファイル)の内容を表示する
more test.txt
test.txt (テキストファイル)の内容を1画面ごとに表示する
help
ヘルプ:利用可能なコマンドの説明など
copy test.txt test2.txt
test.txt を test2.txt という名前でコピーする
del test.txt
test.txt を削除する
start www.yahoo.co.jp
URL (www.yahoo.co.jp) を開く