1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

コマンドプロンプト メモ

Last updated at Posted at 2024-03-08

使う機会少なく忘れそうなのでメモ。
エクスプローラーでAlt+Dでアドレスバー選択し、cmdコマンドを入力。
cmdコマンド一覧はhelpコマンドから確認できる。

フォルダ構成作成

cmd /c mkdir A¥B C D

/cでウィンドウ非表示。
結果をtreeコマンドで表示すると以下のようになる。

tree結果
C:.
|-A
| └-B
|-C
|-D

cmdでcatし連結

cmd /c type A* > merge.txt

typeがcatの代替となる。
上記は正規表現でA始まりのファイル内容をmerge.txtへ出力している。
出力先ファイルなければ作成される。

ファイル名一括変更

renコマンド(renameコマンドと同一)

cmd /c ren *A変更前.txt *B変更後.txt
1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?