Previous Thread
Next Thread
Print Thread
Hop To
#43339 12/01/2004 12:01 PM
Joined: Dec 2004
Posts: 4
R
stranger
stranger
R Offline
Joined: Dec 2004
Posts: 4
How do I schedule a digest to run daily on a Windows 2000 Server? Task Scheduler doesn't seem to do the trick. I have even created a batch file with the following code and scheduled it witht the task scheduler:

@echo off
CD D:\mypath\ubbthreads\cron\php
PHP subscriptions.php
Exit

My client really want this to work. Any ideas?

#43340 12/01/2004 2:54 PM
Joined: Dec 2003
Posts: 613
Likes: 6
Former Developer
Former Developer
Joined: Dec 2003
Posts: 613
Likes: 6
Try using the "at" command from the command line on the machine - you may have more luck with it.


Charles Capps
Former UBB.classic Maintainer
#43341 12/01/2004 4:04 PM
Joined: Dec 2003
Posts: 20
stranger
stranger
Joined: Dec 2003
Posts: 20
Is php in your path?
Try adding PATH=%PATH%;D:\path\to\php\bin to the top of the batch file.
You can also add it to your path by right clicking my computer, selecting advanced, environment variables. Scroll down to path and click edit. Add ;D:\path\to\hp\bin folder.
To see if php is in your path open cmd.exe and type php.exe. If you get a php error message then you're ok. If you get:
'php' is not recognized as an internal or external command,
operable program or batch file.
then you have to add it the path. Once you do the scheduled task will work.

Last edited by Extrm Bob; 12/01/2004 4:06 PM.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (Havenofsobriety), 156 guests, and 140 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)