Thamarai
6th November 2015, 16:57
Hi,
Is there a way to access the file residing in another server through baan .
For an interface i want to read the file placed in share folder in another system and update in ERP.

dir.path = "\\10.19.114.17\TO_ERP_LN"
dptr = dir.open(dir.path) returns error .


Regards,
Thamarai

benito
6th November 2015, 20:35
can you go to the LN server and check if that share is existing? make sure you type exactly the correct path.

bdittmar
6th November 2015, 20:59
Hello,
what's the errorcode returned ?

Return values

>0 Success; A pointer to the directory data.
-1 Error; No free pointer.
-2 Error. Directory could not be opened or found.
-3 Error. Bad directory descriptor.

Regards

Thamarai
7th November 2015, 06:26
hi,
It gives -22 ( Invalid argument).
dir.path in debug shows dir.path = "\\\\10.19.114.17\\TO_ERP_LN\\.

Regards,
Thamarai

Thamarai
7th November 2015, 07:42
HI,
The path i am accessing is not in LN server. It is from another server which is shared with everyone access rights.

Regards,
Thamarai