CurrentDirectory Property

 

Description

 

Retrieves or changes the current active directory.

 

PowerBASIC Syntax

 

PROPERTY GET CurrentDirectory () AS STRING

PROPERTY SET CurrentDirectory (BYVAL bstrCurDir AS STRING)

 

Arguments

 

bstrCurDir

BSTR. A fully qualified path.

 

Remarks

 

The CurrentDirectory returns a string that contains the fully qualified path of the current working directory of the active process.

 

Example [PowerBASIC]

 

#INCLUDE "WSHOM.INC"

 

DIM pWsh AS IWshShell3

 

pWsh = NEWCOM "WScript.Shell"

STDOUT ACODE$(pWsh.CurrentDirectory)

 

Valid XHTML 1.0 Transitional