The command is analogous to the Unix-based mv command and to the OpenVOSmove_file and move_dircommands.[10]
Options
/y – Suppress prompting to confirm overwriting an existing destination file
/-y – Prompt to confirm overwriting an existing destination file
By default, the command prompts to overwrite unless executed in a batch script. The default can be modified by including the /y option in the COPYCMD environment variable. Then, that can be overridden via the /-y command-line option.
Examples
The following command renames a file or directory foo to bar if bar is not an existing directory. If it is an existing directory, then foo is moved into bar and is then at path bar\foo.
^"OpenVOS Commands Reference Manual"(PDF). StrataDOC Online Documentation Service for Stratus Products. pp. 2–552, 2–558. Archived from the original(PDF) on 2019-09-22. Retrieved October 1, 2019. move_dir: Purpose: This command moves a directory and its contents from one place to another. ... move_file: Purpose: This command moves a file or set of files to another file or directory.