I am having trouble getting my scheduler.bat file to run the cron.php. I have posted info on my problem in the installation forum, but in the meantime I'm wondering if rather than answer my question, what i would really like to know and what i think would help others is what is the correct syntax for building the bat file? what is required, what is optional, and when? for instance, some of the example i have seen have a "-c" in them, others don't. what is "-c" and when do you need it?
also, i have seen one with a semi colon after the first line - is this required? what about quotes around the path - i have to use them in mine because the path has a space in it i think, but i'm not really sure where the quotes go... around the path only i believe.
another thing i am confused by (i'm a php/command line nEWB) is the change directory command - cd - is it only neccessary on the first line?
I have seen bat file examples that had 2 paths in them - one on the first line, one on the second line, and i have seen ones with 3 paths in them - one on the first line, and two on the second line. I think the first line is to tell it to cd to the directory where the cron.php file is located (is there a semi-colon after this?), then the second line tells the path to the php.exe file, followed sometimes by -c and then the path to the php.ini file, followed by -f cron.php... if the php.exe file and the php.ini file are in the same location, do you have to give them both?
I have read the wiki and faqs posts, and have searched and read all posts with "cron" in them from the last few months but still can't get it to work... and none of those posts really dealt much with syntax, and some of them had conflicting information from my standpoint.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks