SRDCMD SRDCMD constructs command lines by combining selected file names with text. The device, uic, name, extension, and version fields may be extracted individually from the selected file names and inserted arbitrarily in the command lines being constructed. The syntax of the SRDCMD command line is: SRDCMD[/PR][/GO] fspec[,fspec...] text[>[>]file] "fspec" may be a simple file name, an indirect command file name preceded by @, or a file name containing SRD wild card characters or switches. If the file name is an indirect file name, SRDCMD will se- lect the named files in the indirect file one at a time. If it is an SRD-type file name, SRDCMD will select the files selected by SRD. In either case, if the /PR switch is specified, SRDCMD will prompt you with each of the selected file names to see if you want it selected. Responses to the prompt are: Y Select the file. or N Don't select the file. G Select this and remaining files with no prompting. ^Z Don't select this file and remaining files. If the /GO switch is specified, then the file names will be printed to the terminal as they are selected, but no prompting will occur. If no switches are specified, the file names will not be printed as they are selected and no prompting will occur. Note: Normal SRD wild card characters and switches may be used in an SRD-type file name; however, do not use the /SE: switch, as this is the default switch. Also, only the most recent versions will be selected unless ;* is spec- ified. "text" is the text of the command line that SRDCMD will con- struct. Fields from the selected file names may be inserted in the command line by prefixing the following characters with the ' (quote) character in the "text": 'D Insert the device name. 'U Insert the uic. 'N Insert the name. 'E Insert the extension. 'V Insert the version number. '& Insert the whole file name, excluding the version number. '' Insert a ' (quote). '> Insert a > (greater-than sign). SRDCMD Page 2 The default output of SRDCMD goes to the terminal; to redirect it to a new file, specify >FILE at the end of the command line, or to append to an existing file specify >>FILE at the end of the command line. The default extension for FILE is .CMD . SRDCMD is located on LB:[22,2]. If you type: PDS> XEQ/APPEND LB:[22,2] then you can use XEQ to run SRDCMD. Example: PDS> XEQ SRDCMD V*.FTN COPY '& [6,50]'N.FOR>T This command writes command lines to T.CMD which copy .FTN files be- ginning with a V to [6,50] with .FOR as the new extension.