FolderExist
State = FolderExist(FolderName$)
 
Parameters:

    FolderName$ = The name of folder you wish to check
Returns:

    State = 1 = file exists, 0 = file does not exist
 

      The FolderExist function checks if a folder exists. It returns a 1 value (true) if the folder exists and a zero(false) if it doesn't.



FACTS:


      * none



Mini Tutorial:


      This example, check if a file exists

  
; Check if the folder "C:\Windows" exists
  If FolderExist("C:\Windows")=true
   ; if the file exists, the display this message
   ; to the screen
     Print "Yes, this Folder exists"
  Else
   ; If the folderdoes NOT exist, then display
   ; the failure message
     Print "Nope, this does not exist"
  EndIf
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  



SInce on my machine Windows is installed on the C: drive in the windows folder. This example returns the following.

  
  yes, This folder exists
  

 
Related Info: DriveExist | FileExist :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com