| Description: Sets the current directory Notes: Set strDirectory to the path of the directory you want to make the current directory Public Function SetCurrentDirectory& Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) Public Sub SetCurrentDir(strDirectory As String) SetCurrentDir = SetCurrentDirectory(strDirectory) If SetCurrentDir = 0 Then ' Insert Error Handling routine here End If End Sub |
Set Current Dir |
Express News India | Freelance ecommerce web development India