I need to do some interaction from my Notes Code and my File System (Windows NT)
There goes the doubt (jack the ripper style)
1 - The code locate the user on the NAB
2 - Get the employeeID
3 - Map a network drive that contains all user ID files
4 - Get this file and attach into a mail message
5 - Send this mail message to the user.
The problem is the step four (4)… i don’t know who to locate the requested ID file in the file system. Becouse if the file do not exists i need to search in other repository.
i beleive you can you to dir$ in Lotus script or even you can open the file in script and if you get an error, then change the directory to the other place to look.
Well there are several ways that you could do this and which way to go depends on a lot of different things. If you allow operator input then just use a dialogbox and call it from a LS function:
Dim Files as Variant
Files = WS.OpenFileDialog(False, “Select ID File”, “.ID”)
.
.
.
Call rtitem.EmbedObject( 1454, “”, Files(0))
If you know the ID name then you could the whole thing by a single agent, look in the help under File Handling in LS. You can browse the FIle System and search and retrieve a specific file.
One major caveat "If it is a scheduled agent the ID signing the agent must have the rights to run an UnRestricted Agent which allows it access to the filing system