Phantom Documentation

[Help Home] [Phantom Home]
MakeDir

bool MakeDir(string)

Return Type: bool
Parameters: string PathName

Description:
MakeDir attempts to create the directory indicated by PathName. This will only create one directory level at a time. A warning is produced and the function returns false if directory could not be created. A value of true is returned if the directory was created successful. The PathName can either be an absolute path or a path relative to the current directory.

Example Code
bool b = MakeDir(".\\TestDir");
if(b)
{
  disp("Directory Created");
}
else
{
  disp("Directory Not Created");
}


 


Copyright 2000-2011 Phantom Automated Solutions