Top  Previous  Next


The OSCOPY command copies an operating system level file or directory to a specified location.





OSCOPY src.path TO tgt.path {APPENDING} {NO.QUERY}




src.pathis the pathname of the file or directory to be copied.


tgt.pathis the pathname of destination.



The OSCOPY command provides an easy way to copy an operating system file or directory.


In all cases, tgt.path is the pathname of the new file or directory, not the parent directory into which items will be copied. Any existing item will be overwritten.


The APPENDING option applies only when src.path is a file and causes the data to be appended to tgt.path if the output file already exists.


The NO.QUERY option suppresses the confirmation prompt asking whether the target directory should be created if it does not already exist.


The OSCOPY command locks each item as it progresses. When copying the directory that represents a QM hashed file, it is essential that the file is not open in any QM process as this may result in incorrect data being copied.


Note that failure may occur at any stage of copying a directory structure and updates performed before the error will not be undone.







The above command copies C:\SALES (perhaps an operating system directory representing a QM hashed file) to a subdirectory of the same name under C:\BACKUPS.



See also