Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>rmdir() - remove a subdirectory</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     rmdir() - remove a subdirectory
  Usage:    <logical> = rmdir(<dirname>)
  Params:   string <dirname> - directory name to remove
  Returns:  logical .T. if directory removed, .F. if error

 ---------------------------------- Example ---------------------------------

                 @ 10,0  say "Enter directory to remove: "
                 @ 10,27 get mdir
                 read

                 if .not. rmdir(mdir)
                      ? "Couldn't remove directory &mdir"
                 else
                      ? "Directory &mdir. removed..."
                 endif

  Note:     This function sets ferror() if an error occurs.


See Also: isdir() mkdir() chdir() curdir()

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