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: 611
Former Developer
Former Developer
Joined: Dec 2003
Posts: 611
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
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
0 members (), 1,144 guests, and 193 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)