Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - dirmake(<c directory>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DIRMAKE(<C directory>)
 Creates a directory if it does not already exist.
 Returns <expL> true if the directory exists or was successfully created.

 <directory> is the DOS path in the format

     [<drive>:][<path>]<directory name>

 If the specified directory does not exist, it will be created.

 * Specified drive
 IF .NOT. DIRMAKE("A:\Clipper\Utils\Asm")
    ? "Error -- Could not create directory"
    ? "Probably reached diskspace or file limit"
    DO no_crash    && procedure to handle errors
 ENDIF

 * Current drive
 IF ! DIRMAKE("\Clipper\Utils\Asm")
    ? "Error -- Could not create directory"
    ? "Probably reached diskspace or file limit"
    DO no_crash    && procedure to handle errors
 ENDIF

 * The procedure no_crash is not a part of this library.
 * It is used here as an example of syntax to call a procedure
 * that you write for handling errors in your application.


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: ISDRIVE() ISFIXED()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson