ProgramDir$
Folder$ = ProgramDir$()
 
Parameters: NONE
Returns:

    Folder$ = The folder that this program was started within.
 

      The ProgramDir$ function returns the name of the folder your program was started within. This is mainly only useful, when sharing your programs with others. Since other users they may not install your program to the same directory on their computer, as it is was upon yours. So if your program needs locate where your graphics and sound media folders are (for example), ProgramDir$ will help you do this.




FACTS:


      * none



Mini Tutorial:


This example display the current directory.


  
; Display the Directory/Folder this program was compiled in
  Print ProgramDir$()
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



If you cut and pasted this example into the IDE, it would output the program dir as something like this.

  
  C:\My_Programs\PlayBasic\
  

 
Related Info: CD | CurrentDir$ | SystemDir$ | TempDir$ | WindowsDir$ :
 


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