Previous PageNext Page

Chapter 5 - Using VINES File Commands

Introduction to Using VINES File Commands

VDIR
VCOPY
VRENAME

Using the VDIR Command

Table 5-1. Access Rights Needed for VDIR Command

VDIR Command Syntax

VDIR [DOS-pathnames] [/VIEW:file-system] [/HELP] [/SIZE] [/TIME:ttype] [/PAUSE] [/MENU]

Table 5-2. VDIR Command Syntax

DOS-pathnames

Table 5-3. Using the DOS-pathnames Parameter

/HELP

/VIEW:file-system

Table 5-4. File-system View Arguments

/SIZE

/TIME:ttype

Table 5-5. TIME:ttype Arguments

/PAUSE

/MENU

How to Use the VDIR Command

Without switches
With the size and date/time switches
With the /MENU switch to display the menu

Using VDIR Without Switches

Figure 5-1. VDIR Display

Using VDIR with Switches

Figure 5-2. VDIR with Switches Screen

Using the VDIR Command Menu

Figure 5-3. VDIR Command Menu Screen

To Use the VDIR Menu

1. At the system prompt, enter VDIR /M. The VDIR Command menu appears.

2. Choose CHANGE pathname. The cursor moves to the Paths field and a new function key template appears at the bottom of the VDIR Command menu. Table 5-6 describes the new function key options.

Table 5-6. Changing Pathname Function Keys

3. Either:

- Enter a new path name, including a network drive letter, in the Paths field. Press F10. You can enter multiple path names. Go to step 6.

- Press F5. The Select Pathname screen appears. Go to step 4.

4. Use the arrow keys to move through the directory structure and choose a directory or file. You can choose one, several, or all the subdirectories and files:

- To choose directories or files individually, highlight the name and press ENTER.

- To choose all the subdirectories and files in the current directory, press F2.

5. When you finish making your selections, press F10. The VDIR Command menu appears and the path names you selected appear in the Paths field.

6. After selecting the files:

- Choose SELECT options to set switches. Move the cursor to the desired switch and press ENTER. An asterisk (*) appears next to the enabled switch. The ENTER key toggles the selection of a switch on and off. You can set more than one switch. Press F10 to display the directory listing. The directory listing appears.

- Press F10 to display the directory listing. The directory listing appears.

7. Press ESC. The VDIR Command menu appears.

Using the VCOPY Command

Table 5-7. Access Rights Needed for VCOPY

VCOPY Command Syntax

VCOPY source-pathname [destination-pathname] [/A] [/E] [/O] [/P] [/S] [/HELP]

Table 5-8. VCOPY Parameters

How to Use the VCOPY Command

Copy a file to an existing directory
Copy a file to a new directory
Copy a directory with switches
Copy a directory to the root or another file volume
Use the VCOPY Command menu

Copying Files with VCOPY

Example To Copy a File to an Existing Directory

1. Enter vcopy f:\user\old_file.exe h:\public\new_file.exe.

The following message appears:

Does new_file.exe specify a directory (D) or a file name (F) on the target?

2. Enter F. VCOPY copies the file old_file.exe in the f:\user directory and names the copy new_file.exe in the h:\public directory.

Example To Copy a File to a New Directory

1. Enter vcopy f:\user\my_file.exe \newuser.

The following message appears:

Does NEW specify a directory (D) or a file name (F) on the target?

2. Enter D to create the new directory. VCOPY copies the file my_file.exe to the newuser directory that it has created. The copy keeps the same file name.

If you enter F, VCOPY does not create a new directory; instead, it copies the file my_file.exe to the file called newuser within the user directory.

Copying Directories with VCOPY

Example To Copy a Directory Using Switches

Example To Copy a Directory to the Root of Another File Volume

vcopy s:\mydir p: /s.

Using the VCOPY Command Menu

Figure 5-4. VCOPY Command Menu Screen

CHANGE source - Lets you to enter and change the source file or directory.
CHANGE destination - Lets you to enter and change the destination file or directory.
SELECT options - Lets you to select copy options.

To Use the VCOPY Command Menu

1. From a PC on the network, enter VCOPY at the system prompt. The VCOPY Command menu appears.

2. Choose CHANGE source. The cursor moves to the bottom half of the screen and a new function key template appears at the bottom of the menu. Table 5-9 describes these keys.

Table 5-9. Changing Pathname Function Keys

3. Select a source pathname by either:

- Entering the pathname and pressing F10.

- Pressing F5 and choosing a pathname from the Select Pathname screen. Use the arrow keys to highlight the pathname and press ENTER.

The VCOPY Command menu displays the source pathname you choose in the Source field. CHANGE destination is highlighted.

4. Press ENTER. Choose a destination pathname by either:

- Entering the pathname and pressing F10.

- Pressing F5 and choosing a pathname from the Select Pathname screen. Use the arrow keys to highlight the pathname and press ENTER.

The VCOPY Command menu displays the destination pathname you selected in the Destination field. SELECT options is highlighted.

5. After selecting the source and destination:

- Choose SELECT options to set switches. Move the cursor to the desired switch and press ENTER. An asterisk (*) appears next to the enabled switch. The ENTER key toggles the selection of a switch on and off. You can set more than one switch. Press F10 to execute VCOPY. A message appears confirming the copy.

- Press F10 to execute VCOPY. A message appears confirming the copy.

6. Press ESC to return to the system prompt.

Using the VRENAME Command

Table 5-10. Access Rights Needed for VRENAME

VRENAME Command Syntax

If you want to use the VRENAME Command menu, enter the VRENAME command without any switches:

VRENAME

If you are renaming a file or directory using its DOS name, use this command syntax:

VRENAME DOS-pathname new-name /VIEW: file-system

If you are renaming a file or directory using its name in a file system view other than DOS, use this command syntax:

VRENAME DOS-directory\ old-name new-name /VIEW:<file-system> [/HELP]

Table 5-11. Switches for VRENAME

Renaming Files

Example To Rename a File from the DOS View

Example To Rename a File from the Macintosh View

Example To Rename a File from the VRENAME Command Menu

1. Enter VRENAME. The VRENAME Command menu appears. The menu displays the current volume and directory. The default file system view is DOS.

2. Choose CHANGE path. The cursor moves to the bottom half of the screen and a new function key template appears at the bottom of the menu. Table 5-12 describes these keys.

Table 5-12. Changing Pathname Function Keys

3. Select a pathname by either:

- Entering the pathname and pressing F10.

- Pressing F5 and selecting a pathname from the Select Pathname screen. Use the arrow keys to highlight the pathname and press ENTER.

The cursor moves to Enter SOURCE at the top of the screen.

Note: If you selected a path and a file, the cursor moves to Enter DESTINATION at the top of the screen. Go to step 6 to continue.

4. Press ENTER. The cursor moves to the Selected File or Directory field.

5. Enter the name of the file or directory you want to rename and press ENTER. The cursor moves to Enter DESTINATION at the top of the screen.

6. Press ENTER. The cursor moves to the Selected File or Directory field.

7. Enter the new file or directory name and press ENTER. The file or directory is renamed.

8. Press ESC to return to the system prompt.

Previous PageTop Of PageNext Page