Rename a file: Difference between revisions

Content added Content deleted
(Adding MUMPS)
Line 287: Line 287:
-- Root
-- Root
renameFile "/input.txt" "/output.txt"</lang>
renameFile "/input.txt" "/output.txt"</lang>
=={{header|MUMPS}}==
<p>ANSI MUMPS doesn't allow access to the operating system except possibly through the View command and $View function, both of which are implementation specific. Intersystems' Caché does allow you to create processes with the $ZF function, and if the permissions for the Caché process allow it you can perform operating system commands.</p>
<p>On OpenVMS in an FILES-11 filesystem ODS-5 mode these could work:</p>
<lang MUMPS> ;Local
S X=$ZF(-1,"rename input.txt output.txt")
S X=$ZF(-1,"rename docs.dir mydocs.dir")
;Root of current device
S X=$ZF(-1,"rename [000000]input.txt [000000]output.txt")
S X=$ZF(-1,"rename [000000]docs.dir [000000]mydocs.dir")</lang>


=={{header|Objective-C}}==
=={{header|Objective-C}}==