if your example is real life it will fail as you try to make a share on
the server - not a directory
you can only create a new directory under a share (and must have
permissions on the share to do so)
ie
pad = "\\\\MyServer\\MyShare\\Temp";
Pieter
_____
From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: 25. november 2004 14:00
To: [EMAIL PROTECTED]
Subject: [development-axapta] network folders
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
<http://us.ard.yahoo.com/SIG=129rsef8n/M=298184.5639630.6699735.3001176/
D=groups/S=1705006764:HM/EXP=1101474324/A=2434970/R=0/SIG=11edksnhv/*htt
p:/www.netflix.com/Default?mqso=60185402>
<http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=group
s/S=:HM/A=2434970/rand=800339209>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor |
Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.