local extenal function声明
Function ulong GetCurrentDirectoryA(ulong nBufferLength,ref string lpBuffer) Library "kernel32.dll"
在程序里面用
string ls_Buffer
ls_Buffer=Space(255)
IF GetCurrentDirectoryA(255,ls_Buffer)=0 THEN SetNull(ls_Buffer)
ls_Buffer为当前程序路径
创建目录 : Function boolean CreateDirectoryA(string lpPathName,string lpSecurityAttributes) Library "kernel32.dll"
删除目录 : Function boolean RemoveDirectoryA(string lpPathName) Library "kernel32.dll"