:: reverse dictionary ::
ファイルの名前を変更するには、ren コマンドに変更前、変更後のファイル名を指定して実行します。
D:ディレクトリ F:ファイル D C:\MyDir ├ F sample.txt └ F sample01.txt
C:\>ren C:\MyDir\sample.txt sample02.txt C:\>dir C:\MyDir\sample* /b sample01.txt sample02.txt
ren [ドライブ:][パス]ファイル名 新ファイル名
ren コマンドは、指定したファイル名を新ファイル名に変更します。
ワイルドカードを使って複数のファイルを変更することもできます。
(複数ファイルの拡張子変更)
C:\>ren C:\MyDir\*.txt *.log C:\>dir C:\MyDir\sample* /b sample01.log sample02.log
| dir /b | … | ディレクトリとファイルの名前のみを表示する |
Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com