
SMART ICONS
Smarticon Deployment
Halldor Fridriksson 07.13.1999
Rating: --- (out of 5)




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.
Code
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:
otesw32universe.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:
otesw32universe.smi" , file_smi 'Copy the new smarticon set, the smarticon macro and the smarticon bitmap to the users repository Filecopy "w:
otesw32simi.mac" , file_mac 'and present a messagebox informing of a successful inst. that will take effect after Notes is restarted. Filecopy "w:
otesw32simi.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
 |

|
Rate this Tip
|
To rate tips, you must be a member of SearchDomino.com. Register now
to start rating these tips. Log in if you are already a member.
|


');
// -->
DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.
|
 |
|
|
 |
|
 |