Make directory path: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: elided some blank lines.)
m (→‎{{header|REXX}}: added/changed comments and whitespace.)
Line 300: Line 300:


Usage note:   without the error messages being suppressed, the   '''MKDIR'''   command will issue an error message if the subdirectory (or its path) already exists.
Usage note:   without the error messages being suppressed, the   '''MKDIR'''   command will issue an error message if the subdirectory (or its path) already exists.
<lang rexx>/*REXX program creates a directory and all its parent paths as necessary*/
<lang rexx>/*REXX program creates a directory (folder) and all its parent paths as necessary. */
trace off /*suppress possible warning msgs.*/
trace off /*suppress possible warning msgs.*/

dPath = 'path\to\dir'
'MKDIR' dPath "2>nul" /*alias could be used: MD Dpath */
dPath = 'path\to\dir' /*define directory (folder) path.*/

/*stick a fork in it, we're done.*/</lang>
'MKDIR' dPath "2>nul" /*alias could be used: MD dPath */
/*stick a fork in it, we're done.*/</lang>


=={{header|Ring}}==
=={{header|Ring}}==