CurrentDir$
Path$ = CurrentDir$()
 
Parameters: NONE
Returns:

    Path$ = The current directory path
 

      The CurrentDir$ function returns the programs current working directory.



FACTS:


      * Note - When you run a progam rough the PlayBASIC IDE that has not yet been saved. The PB editor will automatically save the source code to a temp folder. In this situation the CurrentDir$ will return the temp folder.





Mini Tutorial:


      This example display the current directory.


  
; Display this programs Current working dir
  Print CurrentDir$()
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



If you cut and pasted this example to the IDE, it would output the current active directory as something like this.

  
  C:\MY_PROGRAMS\PLAYBASIC\TEMP\
  

 
Related Info: CD | CurrentDrive$ | DriveList$ | FolderExist | SystemDir$ | TempDir$ | WindowsDir$ :
 


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