Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.
For more information and upcoming events around #dominoforever, please visit our Destination Domino Page
From checking, as file shares are common since decades, so LS should finally support true UNC to make this a multi-platform
"Set x = CreateObject(...)"
nice approach indeed; similar approach here, but using the SHELL function right away as in "Shell('NET USE ...')
Problem is: this ONLY works on Windows servers. With true UNC support there's a chance to make this a multi platform approach
Set x = CreateObject("WScript.Network")
x.MapNetworkDrive "x:","\\8.8.8.8\acmeshare", False, "acme\user001","myPassWord"
If Not Dir$("x:\", 16) = "" Then
...
x.RemoveNetworkDrive "x:"
Works just fine for me to get at remote file resources from script from Domino on Windows. Well the mapping does, the RemoveNetworkDrive command stopped working years ago (MS changes?) so just run a batch file at the end of the script to remove the mapping.
RemDrive = Shell("c:\killx.bat")
killx.bat file content:
IF EXIST X: NET USE X: /D /Y
Exit
In comment to the first comment:
"While I would like this, a service is not a logged in user, and therefore has no drive letters."
That is exactly the point: I 'd love to see the ability in LotusScript to useUNC paths instead of being restricted to drive letters! Drive letters are ok for local drives if the server is a windows machine, but completely useless for network ressources
While I would like this, a service is not a logged in user, and therefore has no drive letters.
However I votet for this because this one as well as the second related problem should be more visible in Desinger/Admin Help:
How to figgure out if there is enough access right in the first place (Every now and than I write an Agent using a unc Name for file access and show that run form the client it works, and tell them to come back once it will work run from the server, too. Many come back not being able to cope with this, often enough have never heard of the backgrounds).