Wednesday, July 19, 2006

VB6 - Set Current Working Directory

'Declaration
Private Declare Function SetCurrentDirectory Lib "kernel32" _
Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long

'syntax to set current dir
SetCurrentDirectory App.Path

0 Comments:

Post a Comment

<< Home