Author Topic: Access Lotus Notes  (Read 2314 times)


  • Newbie
  • *
  • Posts: 46
Access Lotus Notes
« on: July 28, 2014, 05:32:47 pm »
   I use WinBatch to access the Lotus Notes database as follow:

      oLN = createobject("Lotus.NotesSession")
   if oLN == 0
       Message("Warning", "Cannot Access")
        sss = oLN.Initialize          ; we have to provide the password
       ccc = oLN.CommonUserName      ;
       dir = oLN.GetDbDirectory("<")      

 this section is just the start of a larger script. We will set the script as a cron job that will run everyday.
We do not have any problem accessing the database but the problem that we have is:  "    sss = oLN.Initialize   "  that prompts us for password any time we run the script.
 How can we solve that problem? Can we somehow preset the password? This WinBatch script will be compiled and the password will also be hidden.




  • Tech Support
  • *****
  • Posts: 3349
    • WinBatch
Re: Access Lotus Notes
« Reply #1 on: July 29, 2014, 06:40:29 am »
According to the Lotus Notes class documentations you can use the 'InitializeUsingNotesUserName' method to specify a user name and password.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade


  • Newbie
  • *
  • Posts: 46
Re: Access Lotus Notes
« Reply #2 on: July 29, 2014, 02:20:30 pm »
Thanks TD, with your help, I got all the information that I need.
Thanks again.