Is there a server version of Dir$? Or is there some way that Dir$ can be set to interpret whatever path is passed to it as being on the Domino Server?
Thanks,
Jack
Is there a server version of Dir$? Or is there some way that Dir$ can be set to interpret whatever path is passed to it as being on the Domino Server?
Thanks,
Jack
Subject: Execution context
One of the most important things to realize in a client-server environment like Notes-Domino is WHERE does your code execute, the client or the server? The answer depends on how you trigger the code. Code initiated by user interaction in the Notes client - an event firing (like PostOpen, QuerySave, etc) or the user pressing a button or choosing an agent from the Action menu - executes in the client on the local machine and therefore has access to the local machine environment and resources (like drives).
Code in scheduled, on new/modifed or before new mail agents executes on the server specified in the agent properties. When it executes on the server, it has access to the server’s environment and resources (drives, data sources, etc).
If you want to have user-initiated code execute on the server, you can bridge the gap with the lotusscript method NotesAgent.RunOnServer, which asks the server to execute an agent for you. You can pass parameters to that agent and results back to the initiating code by way of a parameter document. Check Designer help for details on that function and usage.
Subject: RE: Execution context
Thanks - that’s exactly what I needed. The RunOn.Server method will let me test from my client prior to placing the script on the server.Understood about the “context” of the query. Dir$ checks the “local” drive, whether it’s on your PC or, in the case of being run as a scheduled agent, the Server’s “local” drive. Just needed a way to make it happen so I could track it.
Thanks again,
Jack