------------------------------- RMDIR サブディレクトリを削除します。なお、RDと省略できます。 Removes specified subdirectory. Can be abbreviated to RD. Syntax: RMDIR /H|/? RMDIR [d:]dirpath /H|/? ヘルプを表示します gives this screen d: 削除するディレクトリのあるドライブを指定します drive upon which dirpath resides dirpath 削除するディレクトリです。中にファイルがあると消せません。 subdirectory to remove (may contain whitechars) Examples: RMDIR \users\ian RD \work\test ------------------------------- RECOVER R1.02 損傷を受けたディスクからデータを修復させる Recover lost data from a damaged disk Copyright (c) 1988,1996 Caldera, Inc. All rights reserved. RECOVER d: クラスタチェイン単位でファイルを修復します。なおこのコマンドはルートディレクトリでしか実行できません。 Recover cluster chains into files. Use only if root directory corrupted RECOVER [d:][path]filespec Recover file(s) containing bad sectors ------------------------------- REM バッチファイルで一行をコメントアウトします Used in batch files, this command causes the remainder of the line to be ignored. Syntax: REM /H|/? REM [comment] /H|/? ヘルプを表示します comment コメントcomment text Examples: REM Ignore the rest of this line REM XDEL \*.* /sdrn THIS IS SAFE SINCE IT WONT GET EXECUTED ------------------------------- RENAME ファイル名を変更、もしくディレクトリ間で移動します。なお、RENと省略できます Renames files, or moves files between subdirectories on the same disk. Can be abbreviated to REN. Syntax: RENAME /H|/? RENAME oldwildspec newwildspec [/C] /H|/? ヘルプを表示します。gives this screen /C ファイル名を変更する前にプロンプトを表示します prompt for confirmation before renaming oldwildspec 名前を変更したいファイルの場所 full path and filename of source file(s) newwildspec 新しい名前(パスを含む) full path and filename of destination file(s) Examples: RENAME *.TXT *.DOC REN AUTOEXEC.BAT *.SAV REN \MYFILE.BAT \ARCHIVE\MYFILE.BAT ------------------------------- RENDIR R1.00 ディレクトリ名の変更 In-situ directory rename utility Copyright (c) 1991,1996 Caldera, Inc. All rights reserved. RENDIR [/Help] [d:]pathname [d:]pathname 最初のパスは名前を変えたいディレクトリ名、次のパスは新しいディレクトリ名です。 The first pathname is the directory to be renamed; the second is the new directory name. /H ヘルプを表示します。 gives this help screen. d: ディレクトリのあるドライブ名 is the drive on which both pathnames reside. Examples: RENDIR c:\fred c:\bill - legal RENDIR c:\fred c:\alan\bill - ILLEGAL RENDIR c:\alan\fred c:\alan\bill - legal RENDIR c:\john\bill c:\bill - ILLEGAL ------------------------------- REPLACE R1.47 ファイルの置き換え Selective file copy Copyright (c) 1987,1996 Caldera, Inc. All rights reserved. REPLACE [/Help] [@][d:][path][filename[.ext]] [d:][path] [/options] The first file specification is the drive, path and name of file(s) to be copied (wildcard filenames allowed). This specification must be present. Use '@' to specify that the given file contains a list of files to be copied. 最初のファイル名はコピー元(ワイルドカード使用可)です。このファイルは存在する必要があります。なお、「@」がファイル名の先頭にある場合は、ファイルのリストとして解釈します。 The second file specification is the destination drive and path to which files will be copied. The default is the current drive and path. 二番目のファイル名は置き換え先のファイルの場所を指定します。デフォルトはカレントディレクトリです。 /A 置き換え先にないファイルのみをコピーします。 only copy files that do not exist on the destination /H 不可視・システム属性のファイルを無視します。 don't ignore files with hidden or system attributes /M コピー元で変更されたファイル変更されていないコピー先へマージします。 merge changed files on source with unchanged files on dest. /N 実際にコピーせずにプレビューします。 preview operation - do not actually copy any files /P ファイルを置き換える前にプロンプトで確認します。 prompt before copying each file /R 読み込み専用ファイルを上書きします。 overwrite read-only files /S サブディレクトリのファイルもコピーします。 copy files in subdirectories /U 同じファイルがあった場合、コピー元が新しい新しい場合のみ置き換えます。 only replace files older on the destination than the source /W ディスクを変更を待ちます。 wait for disks to be changed ------------------------------- RESTORE R2.02 バックアップファイルを復元します Restore files saved by BACKUP Copyright (c) 1988,1996 Caldera, Inc. All rights reserved. RESTORE [/Help] d: [[d:][path]filename] [/switches] /A:yy-mm-dd 指定された日付より後に変更されたファイルのみ復元します。 restore files modified on or after specified date /B:yy-mm-dd 指定された日付より前に変更されたファイルのみ復元します。 restore files modified on or before specified date /E:hh:mm:ss 指定された時刻より前に変更されたファイルのみ復元します。 restore files modified at or earlier than specified time /L:hh:mm:ss 指令された時刻より後に変更されたファイルのみ復元します。 restore files modified at or later than specified time /M 最後のバックアップ以降に更新されたファイルのみ復元します。 restore files modified or deleted since last backup /N 復元先にないファイルのみ復元します。 restore files that no longer exist on the destination /P 復元する前にプロンプトで確認します。 prompt before restoring files changed since last backup /R 復元するファイル名を報告します。なおファイルの復元は行われません。 report names of files which WOULD be restored - take no action /S サブディレクトリも対象にします。 restore files in subdirectories also ------------------------------- RETURN GOSUBコマンドで移動したルーチンから、元の場所に戻ります。 バッチファイルで使用します。 Example: GOSUB myfunc GOTO finished :myfunc ECHO Hello RETURN :finished -------------------------------