|
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
|