I am using the following command to create a directory, now before creating want to check if Dir Exists, then ignore else create:
exec('cmd.exe','mkdir [$Path3]',0);
Thanks a lot for the helpful info.