php.exe expects a PHP script as an argument, usually. You can run it interactively with -a or use -i to get phpinfo output and so on, but php.exe with nothing at all will run and not do much of anything. On Tue, June 12, 2007 11:30 am, Bosky, Dave wrote: > What's the syntax I need to use to execute a PHP script from a batch > file? > > > > PHP is installed in 'C:\PHP' and the script I want to run is in > 'C:\Inetpub\scripts\run.php'. > > > > I've created a Windows batch file which executes from the 'C:\PHP' > directory and contains a single line 'php.exe > C:\Inetpub\scripts\run.php'. > > > > It seems to run ok but nothing happens. Any ideas? > > > > Thanks, > > Dave > > > ********************************************************************** > HTC Disclaimer: The information contained in this message may be > privileged and confidential and protected from disclosure. If the > reader of this message is not the intended recipient, or an employee > or agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify us > immediately by replying to the message and deleting it from your > computer. Thank you. > ********************************************************************** > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php