Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to launch a windows cmd from a journal.nsf file ?

Status
Not open for further replies.

deros68

Programmer
Oct 28, 2005
12
US
We use a personal journal .nsf file to pass around as an attachment & later export sections from it into a Non Notes db. While I can open the .nsf file to see who updated it - I need to be notified when it is opened - asap. I want to create a "simple action" or Notes script that runs upon opening of the file by a Notes client. Questions
1. parent notes email template sez "no stored forms" however I can create this journal with "stored forms allowed"
2. can I do this at each open by Notes - ie - upon view or read of .nsf file under a notes client ?
3. cmd syntax that I want to run is
c:\windows\system32\ping.exe -l 111 -c 6 ipaddress

What I am trying to do is to be notified - almost real time - when this file is used (view or read). Another approach is - can I have Notes send me a canned email when this file is opened ?

can this be done ?

thanks for any help
 
It can be done. In short, since you want to make a notification / run program when opening the database, then use the 'Database script' as your start point.
1. Stored form is not necessary, avoid it if you can
2. Use the PostOpen event in Database script
3. You can use the Shell command to run any program

For 'notification' I would recommend to use a log instead. A NotesLog storing the actions into a log file can keep track of quite detailed info of whats going on, including deletions of documents and more, much more.
To use mail is straight forward and works well as long as the activity level aint to high, but can become a problem if the result is a mail 'bombardment'. Therefore I do recommend to use a NotesLog instead, even if you have to be notified instantly. You decide anyway :)

Brgds,

TrooDOS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top