Windows API Calls for Powerbuilder 5.0

¹®Á¦

CreateDirectoryA( )

ÇØ°á

This function create a new directory folder under the current directory, which under Powerbuilder would be c:\pwrs\pb5i32 of you installed shortnames. The second argument is exclusively used by NT and can be ignored under Win95. There is no Powerbuilder equivalent.

Global External Function:
FUNCTION boolean CreateDirectoryA(ref string pathname, int sa) LIBRARY "Kernel32.dll"

Script:
boolean rtn
string l_dir
l_dir = "API Demo"
rtn = CreateDirectoryA(l_dir, 0)
If rtn then
        MessageBox("New Directory Created", "API Demo directory is located under pwrs.")
else
        MessageBox("CreateDirectory", "Failed")
end if

 

ÂüÁ¶