WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > how to add scheduled task, or is it possible?
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
atsuk
Member

Registered: Jun 2003
From: Estonia

Question how to add scheduled task, or is it possible?

what if i wanted myapp.exe to be launched every monday at 09:00 ?

Quick Link | Report this post to a moderator | IP: Logged

atsuk is offline Old Post 08-31-2003 06:46 AM
Click Here to See the Profile for atsuk Click here to Send atsuk a Private Message Click Here to Email atsuk Find more posts by atsuk Add atsuk to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

A little forum search came up with:

http://forums.winamp.com/showthread...hlight=schedule

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 08-31-2003 10:12 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
Afrow UK
Moderator

Registered: Nov 2002
From: Shropshire, England

That would be a good plugin for NSIS.
Do you think it will be made?

-Stu

__________________
afrowuk.co.uk

Quick Link | Report this post to a moderator | IP: Logged

Afrow UK is offline Old Post 08-31-2003 12:24 PM
Click Here to See the Profile for Afrow UK Click here to Send Afrow UK a Private Message Click Here to Email Afrow UK Visit Afrow UK's homepage! Find more posts by Afrow UK Add Afrow UK to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

Not by me on the near couple of weeks.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 08-31-2003 12:26 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

At NT/W2k/Xp system there is command AT.EXE.
at.exe 9:00 /every:monday "c:\test.exe"

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-02-2003 11:14 AM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

Job could be done using updated system plugin (as soon as exehead will be updated too, for plugin look at "Exehead & Ole" thread). I've included source file with function and use example (since it will be hard to extract information from this page

Usage:

push "My Task"
push "My Task Comment"
push "c:\Working Dir\My Task Program.exe"
push "c:\Working Dir"
push "My Program Args"
; what that's structure means? look thru attached nsi file, that's information tooks to many place
push "*(&l2, &i2 0, &i2 2003, &i2 9, &i2 3, &i2 0, &i2 0, &i2 0, &i2 9, &i2 0, i 0, i 0, i 0, i 2, &i2 1, &i2 0x2, &i2 0, i 0, &i2 0) i.s"
Call CreateTask
Pop $0
MessageBox MB_OK "CreateTask result: $0"

Realization and TIME_TRIGGER structure description are at attached nsi file.

Attachment: sheduletask.nsi
This has been downloaded 925 time(s).

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-03-2003 12:06 PM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
atsuk
Member

Registered: Jun 2003
From: Estonia

well, i got first example working fine, but i didn't manage to do it with the other one
tnx anyway

Quick Link | Report this post to a moderator | IP: Logged

atsuk is offline Old Post 09-04-2003 03:01 PM
Click Here to See the Profile for atsuk Click here to Send atsuk a Private Message Click Here to Email atsuk Find more posts by atsuk Add atsuk to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

first example???? I've posted only one...

Oh. you mean at.exe.

To utilize second one (it will work at win95-winxp) you'll need the latest CVS (as soon as Kichik will update it for compatibility with system plugin .

So... All together: KICHIK! KICHIK!! KICHIK!!!

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-04-2003 05:22 PM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
atsuk
Member

Registered: Jun 2003
From: Estonia

well i still didn't understand second example, but i have a question with the first one. By default this command line
'at.exe 9:00 /every:monday "c:\test.exe"'
gives a name for the scheduled task "at1". is it possible to give job different name?

Quick Link | Report this post to a moderator | IP: Logged

atsuk is offline Old Post 09-08-2003 11:44 AM
Click Here to See the Profile for atsuk Click here to Send atsuk a Private Message Click Here to Email atsuk Find more posts by atsuk Add atsuk to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

For the second one you need the latest CVS version. As for the name of the task with the first one, if to believe to at.exe /?, you can't.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-08-2003 11:49 AM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

Somebody checked it beside me? Kichik could you please?

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-08-2003 12:28 PM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

Yes, it works.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-08-2003 12:57 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
atsuk
Member

Registered: Jun 2003
From: Estonia

ok got it

Quick Link | Report this post to a moderator | IP: Logged

atsuk is offline Old Post 09-08-2003 04:39 PM
Click Here to See the Profile for atsuk Click here to Send atsuk a Private Message Click Here to Email atsuk Find more posts by atsuk Add atsuk to your buddy list Edit/Delete Message Reply w/Quote
brainsucker
Senior Member

Registered: Sep 2002
From: Minsk, Belarus

Just a system update.

release 5, 11 september 2003.
1. u flag - unload dll after procedure call.
2. some changes to asm to turn on Whole Program Optimization.
3. Dll shrinked for 1 kb.

Attachment: system5.zip
This has been downloaded 669 time(s).

Quick Link | Report this post to a moderator | IP: Logged

brainsucker is offline Old Post 09-11-2003 02:42 PM
Click Here to See the Profile for brainsucker Click here to Send brainsucker a Private Message Find more posts by brainsucker Add brainsucker to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Israel

Uploaded, thanks.

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 09-11-2003 08:21 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 08:14 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > how to add scheduled task, or is it possible?
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON