Page 1 of 1 1
Topic Options
#122617 - 2004-07-12 10:40 AM How to run a exe file once a week first logon
Guy Offline
Lurker

Registered: 2004-07-12
Posts: 3
Hello how can I start a exe file (*\Spybotsd.exe /autocheck /autoimmunize /autofix /autoclose), once a week add the first logon ?,is it possible with kix ?

Thanks, GUy

Top
#122618 - 2004-07-12 10:43 AM Re: How to run a exe file once a week first logon
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Surely you could do this with Scheduled task?

There are many links relating to this, if you do a search on the board

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#122619 - 2004-07-12 11:34 AM Re: How to run a exe file once a week first logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
don't think that is needed.
simple marker ini is sufficient.
if not exist or not proper entry for this week, run.
_________________________
!

download KiXnet

Top
#122620 - 2004-07-12 12:06 PM Re: How to run a exe file once a week first logon
Guy Offline
Lurker

Registered: 2004-07-12
Posts: 3
Oke thanks i will check that !
Top
#122621 - 2004-07-12 12:10 PM Re: How to run a exe file once a week first logon
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Something like this will do:
Code:
$sSentinel="c:\trigger.ini"

$iWeekNo=@YDAYNO/7
If $iWeekNo <> ReadProfileString($sSentinel,"SPYBOT","LastWeekRun")
Run "spybot..."
$=WriteProfileString(($sSentinel,"SPYBOT","LastWeekRun",$iWeekNo)
EndIf



Not perfect as it may run twice in the same week at the end of the year, but probably sufficient for the requirement.

Top
#122622 - 2004-07-12 02:29 PM Re: How to run a exe file once a week first logon
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Have a look at either of the following UDFs -

ONEAWEEK() - Run a program once a week
ONEADAY() - Run a program once a day

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.066 seconds in which 0.036 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org