|  |  HP OpenVMS Systems Documentation | 
|  | Using DECwindows Motif for OpenVMS
 6.2.3 Selecting Scattered FilesTo select files scattered throughout the file list: 
 6.2.4 Selecting All Files in a Current DirectoryTo select all the files in the current directory, choose Select All from the Selected menu on the File Selection menu bar. You can then remove individual files from the selection by pointing to them, pressing and holding the Shift key, and clicking MB1. You can remove multiple files from the selection by pointing to them, pressing and holding the Shift key and MB1, and dragging the pointer over them. 
To cancel your file selection, choose Select None from the Selected
menu on the File Selection menu bar.
 
You can also select file names that appear in other windows by either
dragging the pointer through the file name or double clicking on it.
For more information about selecting text, see Chapter 3.
 Sometimes you want to screen some files out of the full file list and display only a subset of files. Perhaps you want to display only those files with a LOG file type or whose version number is 1. By using the File Filter entry box, you can limit the list of files displayed. To display a partial file list: 
 
You can specify a search list in the File Filter entry
box. A search list is a logical name that has more than one equivalence
name. It provides FileView with a list of places to look for a file. If
you use a search list in the File Filter, the file list automatically
displays the directory in which the file is located.
 When you choose a command from FileView's Commands menu, you can execute the command immediately or you can choose to display a command dialog box. From a command's dialog box you can choose options to tailor the file operation. For example, you can request that the Copy command display a confirmation prompt each time you copy a file. To execute a command without displaying a dialog box, select a file and choose the command you want to use from FileView's Commands menu. To display a dialog box when you use a command, choose the ellipsis (...) next to the command you want to use from FileView's Commands menu. If you do not select a file, FileView automatically displays a dialog box. 
 
 6.3.1 Applying Your SettingsEvery FileView command dialog box contains push buttons you can use to apply and save your settings, cancel the dialog box, or display help. 
 6.3.2 Creating and Modifying Files  To edit a file: 
 If you clicked on EVE, FileView displays another dialog box in which you can specify EVE settings. If you clicked on EDT, FileView opens a Task Output window where you can edit your file using EDT. If you clicked on Notepad, a Notepad window opens. To view the contents of one or more files without making any changes, use the Read command: 
 6.3.4 Copying Files  You can make a copy of a file to create a file with a new file name, concatenate two or more files into a single file, or copy a group of files to a group of new files. You can also enhance a copy operation by choosing several options from the Copy dialog box. 
When you copy a file, the original file remains unchanged.
 To copy a file to a new name or to a different subdirectory: 
 6.3.4.2 Copying Groups of FilesYou can concatenate two or more files into a single file, or copy multiple input files to multiple output files. To copy a group of files at the same time, you select the files and then copy them in one operation. You can also tailor this copy operation by choosing options from the Copy dialog box. To copy a group of files in one operation: 
 If you specify multiple input files in the Copy dialog box, separate them with commas. To create multiple output files, specify multiple input files and include at least one of the following: 
 When you create multiple output files, the corresponding field from each input file specification is used in the output file specification. If you do not specify a version number for the input and output files, the Copy command assigns a version number to the output files that is either of the following: 
 If you specify a version number in the output file specification, the Copy command uses that number for the output file specification. If a higher version of the output file already exists, a warning message appears in the Task Output window, but the file is still copied. If an equal version of the output file already exists, a message is issued and the file is not copied. (Click on the Replace button in the Copy dialog box to overwrite the existing file.) The following example copies the files DIRECTIONS.TXT;1 and PROVISIONS.LIS;1 to produce two output files, HOLIDAY.TXT;1 and HOLIDAY.LIS;1: 
 
 6.3.5 Searching Files for Text Strings  To search one or more files for one or more text strings: 
 To use wildcards in the file specifications of the files you want to search, choose the Search command without first selecting any files. In the following example, choosing the Search command and entering the file specification as shown searches all versions of all files in the current directory with the file type COM for the text string WRITE: 
 
 6.3.6 Changing the Name of a File  You can use the Rename command to 
 
You cannot, however, use the Rename command to change the device on
which a file is located. When you rename a file, a copy of that file no
longer exists under its original name.
 To change all or part of a file specification of an existing file: 
 If you choose the Rename command without first selecting a file, type the name of the file you want to rename in the Rename dialog box. If FileView cannot rename the file, it displays the word Error in the Work in Progress dialog box. To open the Task Output window to see the error message, click on the Show Output button. Click on the OK button in the Task Output window when you finish viewing the message. In the following example, choosing the Rename command and entering the file specifications in the Rename dialog box as shown changes the directory specification of DIRECTIONS.TXT from your top-level directory to the SCHEDULES subdirectory. (DIRECTIONS.TXT is moved to the SCHEDULES subdirectory.) 
 
 6.3.6.2 Renaming Groups of FilesYou can rename multiple files in one operation. The simplest way to rename multiple files is to select them in your file list and rename them as you would one file. You can also rename multiple input files to multiple output files by specifying wildcard characters in corresponding entry boxes of the input and output file specifications. Just as when you renamed one file, you can tailor this operation by choosing options from the Rename dialog box. If entry boxes in the output file specification are omitted or are replaced by wildcard characters, the Rename command uses the device, directory, file name, and file type of the input file specification to name the corresponding fields in the output file specification. The version number is determined in the following ways: 
 To rename multiple files in one operation using wildcards: 
 In the following example, choosing the Rename command and entering the file specification in the Rename dialog box as shown renames all versions of all files in $USERS:[JONES] with the file type TXT to the file type OLD. The file names and version numbers are not changed. 
 
 6.3.7 Comparing the Contents of Files  To compare the contents of two files and view a listing of the lines that do not match: 
 If you choose the Compare command without first selecting a file, type the name of the file you want to compare with its previous version. The following example shows the results of an operation in which the files PROJECTIONS.LIS;2 and PROJECTIONS.LIS;1 are compared:   In the following example, choosing the Compare command and entering the file specification in the Compare dialog box as shown compares the contents of the TRADE_BARRIERS.TXT with EMBARGOES.TXT: 
 
 
 You can obtain information about a file or group of files by using the Show File command. This information can include the file's size, creation date, protection settings, and last backup date. To obtain information about a file: 
 FileView displays a dialog box.   To use wildcards in the file specifications of the files you want information about, choose the Show File command without first selecting any files. In the following example, choosing the Show File command and entering the file specification as shown displays information about all files in the $USERS:[JONES] with the file type PS: 
 
 Output from the Show File command looks similar to this:   Every time you modify a file, another version of the file is added to your directory. If you find yourself with multiple versions of a file, use the Purge command to delete all older versions. Purging your directory makes room on your disk for other files. By default, the file list displays only the highest version of each file. If you have not changed this setting, you can purge your entire directory in one operation by selecting all the files. If your file list displays all versions of your files, you must select only the highest versions of each file for purging. To purge one or more files: 
 If you choose the Purge command without first selecting the file, you are prompted to type the name of the file you want to purge. To use wildcards in the file specifications of the files you want purged, choose the Purge command without first selecting any files. In the following example, choosing the Purge command and entering the file specification as shown purges all files with the letter L in their file name and a file type of COM: 
 
 
 
 
 |