Wednesday, August 5, 2009

Batch files and Bat to Exe converter

Some of the useful links on MS-DOS basic commands and creating bat file.

http://www.computerhope.com/starthlp.htm#04

Information on Batch Files

Also the following link provides a free tool for converting a bat file to exe.

Bat to Exe Converter

It is a super tool. Congratulations to Fatih Kodak

scheduled agent in my local database is not running

Last time I had a problem that 'scheduled agent in my local database is not running eventhoug I am able to run manually'. Later I found that the database should be in data folder for running the scheduled agents in local.

Follow the following check list when having problem with running scheduled agents in local.

1. See you are able to successfully run the agent manually.
2. Go to Cleint. File->Preferences->User Preferences->Basics Tab; check 'Enable scheduled local agents'
3. Check whether the database is in data folder.

Starting Lotus Notes Client after a crash

For those who have problem with starting Lotus Notes after a client crash, do the following step.

  1. Goto the notes program directory.
  2. Create a shortcut icon for nsd.exe
  3. Add the following parameter "-kill" to the target field on shortcut properties window.

eg: "C:\Program Files\lotus\notes7\nsd.exe" "-kill"

The nsd will run and stop all lotus notes related process. After that you can open lotus notes client with out any problem.

Creating nice charts in Lotus Notes Client

Creating nice charts in Lotus Notes Client

This is the database used by Rob McDonagh and Julian Robichaux in their ILUG 2008 session on Reports, Charts, and Graphs in Lotus Notes. They used this as a demo database to show the various techniques discussed in that session. You can download the database from the following link:

http://captainoblivious.com/rob_mcdonagh/home.nsf/d6plinks/BLOT-7BR3XB

Also there is a nice artcile on how to create a chart using lotusscript on web.

http://www.notessidan.se/A55B53/blogg.nsf/pixel?Openagent

Version of Lotus script currently running

Last week, I faced a strange question of what version of Lotusscript you are using. I frantically searched help document, web ; but I was not able to get a proper answer on what version of Lotusscript is currently running on my Lotus Notes.

Later I got a hint on the following code.

retval = Getthreadinfo(LSI_THREAD_VERSION)
Msgbox "The Version of your Lotus script is : " + Cstr(retval)

will print the version of Lotus script currently running

Programatically setting default printer using lotusscript

I had a particular issue of printing problem on Lotus Notes client version below 7.0.2. I want to set a pdfCreator printer driver as default printer for print operation as the uidoc.print() will not accept a printer name as parameter.

I tried setting the pdfcreator as default printer using lotusscript code and tried printing. But what i noticed is whatever we do, Lotus Notes client will not recognize the default printer settings made programaticallyuntil you have restarted the Lotus Notes Client.

I searched several forums and also in IBM technical forum also they have made it very clear.

Changed default printer setting not used by Notes

But I found several good articles which will help to set a printer programatically using lotusscript.

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/b6a12c5af0975f65852571380061c261?OpenDocument

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/737998b4fb2386018525754a0052684f?OpenDocument

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/bc361293e222d12e852575d800646d90?OpenDocument

From my own experience what ever the case to get the progrmatically printer settings to get effect on Lotus Notes Client below 7.0.2 , you have to close and open notes client again.

Below is also a small snippet of code , whihc will programatically set a default printer.

Dim WshNetwork As Variant
Dim WshPrinters As Variant
Set WshNetwork = CreateObject("WScript.Network")
Set WshPrinters = WshNetwork.EnumPrinterConnections()
PrinterPath = "PDF Writer"
WshNetwork.SetDefaultPrinter Cstr(PrinterPath)

Mercy of Lord

Isaiah 30:18
'And therefore will the LORD wait, that he may be gracious unto you, and therefore will he be exalted, that he may have mercy upon you: for the LORD is a God of judgment: blessed are all they that wait for him.'
Mercy of Lord. There is no limit to the mercy of Lord. When the mercy of God meets man , there are many blessings.

Here we will meditate main 6 blessings received by the mercy of God.

1. Sins are forgiven: Luke 18:13
'And the publican, standing afar off, would not lift up so much as his eyes unto heaven, but smote upon his breast, saying, God be merciful to me a sinner.'

2. Obtain divine healing: Mark 10:47
'And when he heard that it was Jesus of Nazareth, he began to cry out, and say, Jesus, thou son of David, have mercy on me.'

3. Comforted: Luke 7:13
'And when the Lord saw her, he had compassion on her, and said unto her, Weep not.'

4. Protection: Psalm 57:1
'Be merciful unto me, O God, be merciful unto me: for my soul trusteth in thee: yea, in the shadow of thy wings will I make my refuge, until these calamities be overpast.'

5. Prayer will be answered: Psalm 4:1
'Hear me when I call, O God of my righteousness: thou hast enlarged me when I was in distress; have mercy upon me, and hear my prayer.'

6. Gather thee: Isaiah 54:7
'For a small moment have I forsaken thee; but with great mercies will I gather thee.'

For receiving the mercy of God, we have to do the following things:
1. Confess our sins: Prov 28:13
'He that covereth his sins shall not prosper: but whoso confesseth and forsaketh them shall have mercy.'
2. Fear the Lord: Luke 1:50
'And his mercy is on them that fear him from generation to generation.'