SetCurrentDirectory

SetCurrentDirectory

VB声明

Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long

说明

设置当前目录

返回值

Long,非零表示成功,零表示失败。会设置GetLastError

参数表

参数

类型及说明

lpPathName

String,新当前目录的路径

Top