Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>creatdir</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CREATDIR

Syntax:                 CREATDIR

Use:                    To create a subdirectory.

Parameters:             The directory you want to create (e.g. C:\BACKUP).

Returns:                The first character in the sending parameter will
                        have a "Y" (i.e. true) if the subdirectory was
                        created, and a "N" if the subdirectory could not be
                        created (e.g. if it already exists).  If you did not
                        pass the parameter correctly (e.g. FOXLIB =
                        "\backup"), your sending parameter will be
                        unchanged.

Example:                . load c:\FOXLIB\creatdir
                        . FOXLIB = "C:\BACKUP"
                        . call creatdir with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu creatdir

                        From this example, the subdirectory C:\BACKUP was
                        created.

Example:                if substr(FOXLIB,1,1) = "Y"
                           copy to c:\backup\filecopy
                        endif

                        From the above example, you could save information
                        to a backup subdirectory for archives.

See Also: REMOVDIR SETDIR

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