Navigation:  Reference > Functions >

DIR_EXISTS()

Print this Topic Previous pageReturn to chapter overviewNext page

DIR_EXISTS(1)

PURPOSE

This function checks for a specific Folder / Directory name.

PARTS

1. f/c/e        Required: - The folder to search for.

 

RETURN TYPE - L

If the Folder / Directory is found this function returns .T., if not it returns .F.

 

COMMENTS

This is similar to FFILE() except that it only checks for a single folder and returns .T. or .F. instead of the file name.

 

EXAMPLES

       if dir_exists('C:\TAS7')

         msg 'The TAS Professional directory exists.

       endif

    if .n. dir_exists('\\SERVER\C\TAS7')

         msg 'The TAS7 directory on the SERVER's C does not exist.'

    endif

 

See also

FILE_EXISTS()

 

 

 


Page url: http://www.cassoftware.com/tas/manual/dir_exists().htm