Hi!
You
can add a Scheduled task (Start->All programs->Accessories->System
Tools->Scheduled Tasks).
Add
the ax32.exe file from you client bin-directory. Set the desired time that you
want your application to run e.g when the computer startes. Enter a username and
a password.
Now
when you have created the task select it in the Scheduled task-form, right-click
and select properties.
In the
run-control add a regconfig-reference to the path
(C:\Axapta\Client\Ax25ClientSP3\Bin\ax32.exe
"-regconfig=AUTOBATCH"
Create
a regconfig named AUTOBATCH using the Config Editor.
In the
startup command-setting add BATCH=MAIL. Save the config.
Now
you create a batchgroup called MAIL in Axapta, then add the mail-batchjob to
that group.
You
may also make Axapta skip the logon-window and have it logged on
automatically. You do this by selecting Tools->Options.
On
the General-tab->Network account name enter the account that use when
you log on to the computer.
So if
this is done correctly Axapta will now start automatically whenever the computer
is restarted and then run the batch-jobs in the
MAIL-batchgroup.
Regards
Bj�rn
-----Original Message-----...put Axapta in the autostart group ;-)
From: Andrae, Tobias [mailto:[EMAIL PROTECTED]
Sent: 5. mars 2004 08:19
To: [EMAIL PROTECTED]
Subject: AW: [development-axapta] Windows service instead of batch jobs
br Tobias
-----Urspr�ngliche Nachricht-----
Von: vozadali [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 4. M�rz 2004 21:24
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Windows service instead of batch jobs
Hi guys,
As far as I know one client should always be kept running for
executing batch jobs, but this is not a very good solution. I am
sending periodical mails to employees in Axapta using various
criteria, and currently I do it using a class which works as a batch
job. But the computer it resides is usually automatically restarts
due to security updates of Windows, and the client is restarted
manually.
Does anybody knows a better solution for sending periodical mails?
Can we create a windows service for that?
Thanks
Yahoo! Groups Links
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

