Subject: Exec a .bat file in PHP on XP
Posted By: freddo Post Date: 10/12/2004 3:08:59 PM
I have been attempting to use the exec in a PHP script as follows

exec("c:\program files\utils\some.bat");

without any success.

The batch file runs a macro applications which carries out a series of tasks before exiting and returning control to the batch file and then hopefully to the PHP script.

A search of this and other sites has not provided a working solution. Any help most appreciated
Reply By: Snib Reply Date: 10/12/2004 3:20:31 PM
Try using DOS-style short file names:

exec("c:\progra~1\utils\some.bat");

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;-)
Reply By: freddo Reply Date: 10/12/2004 3:27:39 PM
Yes tried that thanks Snib - without success



Go to topic 20431

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738