CURDIR[(drive)]

Returns the current path of a given drive (String).


drive(Optional) The existing drive (String).

REMARKS
* If "drive" = "", then the current drive is returned.
* If "drive" is left blank, then the current drive is returned.
* You can use the CURDIR$ function to return a String data type instead of a Variant/String data type.
* The equivalent .NET function is Microsoft.VisualBasic.FileSystem.CurDir
* For the Microsoft documentation refer to docs.microsoft.com

Dim sDirectory As String 
sDirectory = CurDir("E")
sDirectory = CurDir()

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top