You are right peter ;-)
But even then when this MyShare is dedicated to me (with all rights
+ grant options) It is still not possible to check wether this
directory exists (and create it if it's missing) or not.

When debugging the WinApi::PathExists(), there was something I
noticed: the GetCurrentDirectory always returned false when trying
to access a network drive. Perhaps that's what's wrong?

I htink there must be another api-call to check (specifically)
network directories, or isn't there?

Thanks

/b


--- In [EMAIL PROTECTED], "Pieter Wijnen"
<[EMAIL PROTECTED]> wrote:
>
> 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.30011
76/
>
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]
subject=Unsubscri
> 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

Reply via email to