$result = `batfile.bat`; Would do the trick... Notice that it's ` (backtic), not single quote '.... <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hello all, > > I would like to run a batch file in the background, using PHP and Apache on > Win2k Server. I use ANALOG to generate usage stats for my different web > sites. Some of the web masters expressed that they would like to update the > usage whenever they want. > > I've got batch files written that run the reports, filter the reports > through ReportMagic and copy the results to the appropriate directories. > These are run every night through Windows task scheduler. > > Is there a way to do this with PHP? I've looked at exec and passthru, but > I'm still having trouble. > > Thanks in advance, > Lance > >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php