home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
In'side Shareware 1995 April
/
ish0495.iso
/
win95
/
winbatch
/
metertst.wb_
< prev
next >
Wrap
Text File
|
1994-08-28
|
756b
|
28 lines
; Sample program to illustrate the use of METER.WBT
Message("Information","METERTST.WBT shows how to meter network software Inspect file for more information.")
exit
; Prohibit user from cancelling this file
IntControl(12,10,"Close Network Apps before exiting WIndows",0,0)
; We need a user name.
; Logged on user names may be available from the various network
; Extenders available
user = Environment("USER")
if user == "" then user = "UNKNOWN"
meterok = @NO
Call("meter.wbt", "winword ADDUSER %user%")
If meterok == @NO Then Goto failed
RunWait("winword.exe", "")
:cancel
Call("meter.wbt", "winword REMOVEUSER %user%")
Exit
:failed
Message("Cannot run Word for Windows", "Too many users? Try again later.")