Hi all,

Is it possible that the WinApi::PathExists() is not working correct?
i.e. Give a network path and it will always return false.

And then the WinApi::CreateDirectory() will also fail on a network
drive. Who has experienced the same? And what can I do about it?

void networkDirectoryJob()
{
   str ipAddress = "\\\\myserver";
    FilePath pad = ipAddress + "\\temp";
    ;
    if (!WinAPi::pathExists(pad))
    {

        if (WinApi::createDirectory(pad))
        {
            error("Could not create folder!!!");
        }
        else
            info ("Folder created succesfully!");
    }
    else info ("Directory exists.");

}








Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to