and back again ...

the following uses an ini-file on the client computer to check if the executable has already been run on the client :

(Side Note : if the ini doesn't exist it'll be created automatically )

code:

$ini = 'c:\chk.ini'
if exist($ini) = 0
$run = writeprofilestring($ini,"LastRun","Executed","never")
else
$run = readprofilestring($ini,"LastRun","Executed")
endif
if $run = 0 or $run <> @month
shell 'your executable'
if @error = 0 ; or whatever it returns !
$ = writeprofilestring(($ini,"LastRun","Executed",@month)

endif
endif


Good enough ?

Jochen


PS.: unchecked 'cos I'm @home right now ...

[ 01 August 2001: Message edited by: jpols ]

_________________________