Unable to use DIR$ function

I run a scheduled agent on my server and it use Dir$ on a shared folder on a different win srv.

it returns illegal function call, but if i change path to a dufferent shared folder on a different win srv it works correctly.

The shared folder is available for the user used to run domino srv as service on win srv.

I notice that the win srv where my server (and my agent) run is in differrent domain respect the shared folder, it instead works when the shared folder in in the same domain.

it this could be the reason for the error?

Thanks in advance.

Subject: rights

Does the Windows ID that runs the domino service have correct rights to that directory?

Once you get that straightened out you should be fine

Subject: yes

yes i can access the directory lake shared folder logged with the user used to run server domino

Subject: question

If you rdp into the domino server using that windows account and then try to access the share does it work? I want test the right from this actual server.

It has to be a windows issue

https://social.technet.microsoft.com/Forums/windows/en-US/2182f556-14bd-4212-b61b-b4f350f61641/access-shared-folder-on-another-domain?forum=w7itpronetworking

Subject: rights

Loggin into win server with the user running domino server the shared folder is normally available, i can open it

Subject: yes

yes i can access the directory lake shared folder logged with the user used to run server domino