ChDir Statement
Zmenà aktuálny priečinok alebo diskovú jednotku.
This statement currently does not work as documented. See this issue for more information.
Syntax:
ChDir Text As String
Paremetre:
Text: Reťazcový výraz, ktorý určuje cestu nebo jednotku.
Ak chcete zmeniĹĄ iba aktuálnu jednotku, zadajte pĂsmeno jednotky a dvojbodku.
PrĂklad:
Sub ExampleChDir
Dim sDir1 As String , sDir2 As String
sDir1 = "c:\Test"
sDir2 = "d:\Private"
ChDir( sDir1 )
MsgBox CurDir
ChDir( sDir2 )
MsgBox CurDir
End Sub