User's Guide for MS-DOS Clients

302
Connecting to a LAN Manager for UNIX Systems Server
Renaming UNIX System Files
Renaming UNIX System Files
The uren command enables you to rename a UNIX system file or directory.
Specifically, you can use it to change UNIX system filenames on the server
that are invalid for the MS-DOS system to filenames that are valid for
MS-DOS (see “Filenaming Conventions,” earlier in this appendix for
requirements for valid MS-DOS filenames).
This command is useful if you created a file while logged on as a UNIX
system user (via terminal emulation), and now want to access that file from
the MS-DOS prompt of LAN Manager.
To rename a UNIX system file
1 At the MS-DOS prompt on a LAN Manager workstation, link to the shared
directory on the server that contains the file to be renamed. (Instructions for
linking to shared directories are provided in Chapter 2, “Using Shared
Directories.”)
2 Type the letter of the shared directory to which you are linked.
3 Type uren
name1 name2
, where name1 is the current UNIX system filename
and name2 is the new filename. (Make sure that the new filename complies with
MS-DOS filename conventions.)
Using the Uren Command to Move Files
Because the uren command accepts full pathnames, you also can use it to
move a file from one UNIX system directory to another. For example, to
move the file BUDGET from the REPORT subdirectory to the MEMOS
subdirectory, and to rename the moved file 1QBUDGET, enter the following
command:
uren \report\budget\memos\1qbudget
The uren command also enables you to move one or more files to another
directory by entering the command in the following format:
uren name1 name2 ... directoryname
Replace directoryname with the name of the destination directory.