Manage Learn to apply best practices and optimize your operations.

Smarticon Deployment

When coding a macro for a new smarticon I have had problems geting them to the
user comunity. The majority of my users are set up with their Notes files on
the network and their home directory is not garantied to be mapped to the same
drive letter. Having each user copy three files correctly has not been
possible. So I coded the following button for deployment and put an item with
a sales pitch in our internal News database. This has worked like a charm, and
now I only have to make small modifications to this code, when I deploy
additional smarticons. In the following code the messagebox text is in
Icelandic as this is the actual code, but this should not create any problems.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim iconpath As String
Dim file_smi As String
Dim file_mac As String
Dim file_bmp As String
iconpath = session.GetEnvironmentString("WinNTIconPath",True) 'Get
path to where user has his smarticons stored
file_smi = iconpath + "\universe.smi" 'Build path for
smarticon set
file_mac = iconpath + "\simi.mac" 'Build path
for macro
file_bmp = iconpath + "\simi.bmp" 'Build path
for icon bitmap
If Dir("w:\notes\w32\universe.smi") ="" Then 'Verify that user is
connected to the new smarticon set and present an error message if not
correctly connected
Messagebox |Uppsetning hnappastikunnar gengur ekki.
Hafi? samband vi? Halld?r ? t?lvudeild. |
Else
Filecopy file_smi , iconpath + "\universe.old" 'Backup
the previous smarticon set
Filecopy "w:\notes\w32\universe.smi" , file_smi 'Copy the
new smarticon set, the smarticon macro and the smarticon bitmap to the users
repository
Filecopy "w:\notes\w32\simi.mac" , file_mac 'and
present a messagebox informing of a successful inst. that will take effect
after Notes is restarted.
Filecopy "w:\notes\w32\simi.bmp" ,
file_bmp
Messagebox
|

Uppsetningu hnappastiku me? s?mahnappi er loki?.
Hnappastikan ver?ur virk n?st ?egar Notes er r?st. | , 64 ,"Uppsetning
hnappastiku"
End If
End Sub

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close