to rename a directory you use the "MOVE" command
Move
Moves one or more files from one directory to the specified directory.
Syntax
move [{/y|/-y}] [Source] [target]
Top of page
Parameters
/y : Suppresses prompting to confirm you want to overwrite an existing
destination file.
/-y : Causes prompting to confirm you want to overwrite an existing
destination file.
Source : Specifies the path and name of the file or files to move. If you
want to move or rename a directory, Source should be the current directory path
and name.
target : Specifies the path and name to move files to. If you want to move
or rename a directory, target should be the desired directory path and name.
/? : Displays help at the command prompt.
Top of page
Remarks
* Using the /y command-line option
The /y command-line option might be preset in the COPYCMD environment variable.
You can override this with /-y on the command line. The default is to prompt on
overwrites unless the copy command is being executed from within a batch script.
* Moving encrypted files
Moving encrypted files to a volume that does not support
Encrypting File System (EFS) results in an error. Decrypt the files
first or move the files to a volume that does support EFS.
Top of page
Examples
To move all files with the .xls extension from the \Data directory to the
\Second_Q\Reports directory, type the following:
move \data\*.xls \second_q\reports\
Top of page
Formatting legend
Format
Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of
choices from which the user must choose only one
Courier font
Rename (ren)
Changes the name of a file or a set of files.
Syntax
rename [Drive:][Path] filename1 filename2
ren [Drive:][Path] filename1 filename2
Top of page
Parameters
[ Drive : ][ Path ] filename1 : Specifies the location and name of the
file or set of files you want to rename.
filename2 : Specifies the new name for the file. If you use wildcards (* and
?), filename2 specifies the new names for the files. You cannot specify a new
drive or path when renaming files.
/? : Displays help at the command prompt.
Top of page
Remarks
* Renaming files
You can rename all files matching the specified file name. You cannot use the
rename command to rename files across drives or to move files to a different
directory location.
* Using wildcards with rename
You can use wildcards (* and ?) in either file name parameter. If you use
wildcards in filename2, the characters represented by the wildcards will be
identical to the corresponding characters in filename1.
* Rename will not work if filename2 already exists
If, for filename2, you specify a file name that already exists, rename displays
the following message:
Duplicate file name or file not found
Top of page
Examples
Suppose you want to change the extensions of all the file
names in the current directory that have the extension .txt; for
example, you want to change the .txt extensions to .doc extensions. To
make this change, type:
ren *.txt *.doc
To rename a file or directory named Chap10 to Part10, type:
ren chap10 part10
Jim Bentley
American Celiac Society
[email protected]
tel: 1-504-737-3293
>________________________________
>From: "[email protected]" <[email protected]>
>To: RBASE-L Mailing List <[email protected]>
>Sent: Thursday, September 22, 2011 4:20 PM
>Subject: [RBASE-L] - Re: Rename command
>
>
>Dick: Are you renaming a directory, not a file? Your email said a file.
>I don't think you can rename a directory that way...
>
>Karen
>
>
>In a message dated 9/22/2011 3:43:31 PM Central Daylight Time,
>[email protected] writes:
>
>I have a backup program on the server that copies the DB overnight to the
>other server. But it will only write to one folder.
>>Thought I could manipulate the folder names from our morning startup file to
>>keep a 5 day running backup.
>>Looks like I will have to resort to Plan B...... once I figure out what the
>>heck that might be.
>>
>>Dick Fey
>>
>
>
>
>