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.

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:

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

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.

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.'

Experience of upper chamber of house


I Samuel 9:25
'After they came down from the high place to the town, Samuel talked with Saul on the roof of his house.'
Samuel took saul to the upper part of the house. Only afetr that saul got anointed.without the experience of upper house there is no anointing.Only those having the experience of upper house can be counted for blessings of God.

There are five that will happen at the upper chamber of house.

1. Experience of Pass over was conducted at the top of the house: Luke 22:12

'And he shall shew you a large upper room furnished: there make ready.'
It shows the experience of sanctification. Sanctification opens the window of heaven and bless. All blessings starts with santification. To what extend we are santified, that extend personal blessings will come. Without santification we should not expect blessings of God.

2.Experience of Praying: Daniel 6:10

'Now when Daniel learned that the decree had been published, he went home to his upstairs room where the windows opened toward Jerusalem.'
Only those who pray and praise can receive blessings. Prayer is the experience of speaking to God. Gods children shouls always have the experience of praying and parising to God.

3. Experience of Many Lights Acts 20:8

'There were many lamps in the upstairs room where we were meeting.'
Reveals the light of testimony. Otherwise you will be like Eutychus.If we preserve the life of testimony God will bless us. Elijah had a testimony from gentiles that he is the man of God.

4. Experience of raising dead to Life Acts 9:36,40

Jesus raised three types of people from dead:
Mark 5:43 (dead at home) Only we know what is dead in us. Nobody knows outside.
Dead in Gods love, brotherly love.
Luke 7:16 (dead at street) . The death is know to the village i.e., some people.
It shows some does not have testimony among others. Dead in grace
John 11:35 (dead at tomb). Dead in ceppal. It is stinging. His own sister is saying 'by this time there is a bad odor, for he has been there four days'. Dead state known to everybody. It shows backsliding,not able to pray, attend meeting, read bible. Jesus said Lazars come out.

5. Experience of being in fellowship Acts 1:13, 15

'When they arrived, they went upstairs to the room where they were staying'. Around 120 disciples gathered at the upper chamber of rrom for receiving holy spirit. It shows fellowship, we all are one.

Overcome Jericho


Joshua 6:2

'Then the LORD said to Joshua, "See, I have delivered Jericho into your hands, along with its king and its fighting men.'
A child of God have to overcome Jericho is two ways.
1. In personal life we have to overcome Jericho.
2. Collectively, as a church, we have to overcome Jericho.
Jericho is a place of cursed. We have to overcome this curse by the blood of Jesus and meditating the calvary.

Here we will discuss three matters about Jericho.

1. Jericho is a place where there are many robbers. Luke 10:30
'In reply Jesus said: "A man was going down from Jerusalem to Jericho, when he fell into the hands of robbers. They stripped him of his clothes, beat him and went away, leaving him half dead.'
Here we can see that the robbers did three things to the man.
(i) stripped him of his clothes -> shows devil taking away our salvation and praising.By the weapon of prayer we have to overcome it.
(ii) wounded -> shows the devil creating wounds in mind.
(iii) half dead. -> shows the devil not allowing you to rejoice in the presence of the Lord.

2. There was a blind beggar in Jeircho. Mark : 10:46
'Then they came to Jericho. As Jesus and his disciples, together with a large crowd, were leaving the city, a blind man, Bartimaeus (that is, the Son of Timaeus), was sitting by the roadside begging.'
This shows loosing our spiritual vision.
2 Peter 1:9 'But if anyone does not have them, he is nearsighted and blind, and has forgotten that he has been cleansed from his past sins.' This shows loosing ' godliness, brotherly kindness; and to brotherly kindness, love.'
The root word of Love is Agape, which means 'Unconditional Love'. This is the love Jesus showed to us. we have to show the same to our brothers.

3. There was a short man named 'Zacchaeus' in Jeriho Luke 19:1,2
'Jesus entered Jericho and was passing through.A man was there by the name of Zacchaeus; he was a chief tax collector and was wealthy.'
It shows we are not growing in spiritual life. we are spiritually dwarf.For a child of God, the sacel is Jesus.A child of God should live like how Jesus live, speak.

To overcome Jericho, 4 peoples are needed.Joshua 6:12,13
'Joshua got up early the next morning and the priests took up the ark of the LORD.The seven priests carrying the seven trumpets went forward, marching before the ark of the LORD and blowing the trumpets. The armed men went ahead of them and the rear guard followed the ark of the LORD, while the trumpets kept sounding.'
(i) priest -> shows fellowship of priest to overcome the devil.
(ii) trumphet -> confirmation of coming of Lord.
(iii)armed men -> shows prayer warriors.
(iv) Arch of God -> shows the power of God and his presence.

In Josua 5:15 , 'The commander of the LORD's army replied, "Take off your sandals, for the place where you are standing is holy."'. Shoe is a hindrance to the conatct with the holy land & life. Removing the shoe shows entire santification. We need an entire santification to overcome the Jericho.