View Single Post
Old 02-01-2013, 12:51 PM   PM User | #11
Raphael
New Coder

 
Join Date: Mar 2009
Posts: 70
Thanks: 3
Thanked 3 Times in 3 Posts
Raphael is an unknown quantity at this point
So here's where it is now:

I can create the batch file.

The batch file runs perfectly when I run it from the command line.

When I run
PHP Code:
exec('c:\scripts\labor\scheduled\repost_labor.bat'); 
and echo back the output, it just echos the command line inside the batch file but the command doesn't execute. I know this because the .vbs file the batch file is executing logs what it's doing and it doesn't log anything when exec() runs (and it logs everything when I manually run the batch file from the command line).

Why does it just echo back the contents of the batch file without executing it?

Thanks!!
Raphael is offline   Reply With Quote