So if I type the following into a command window in XP
It compiles fine.
If I run the following PHP code
It runs fine... but if I run
It spits back
Error code is obviouslly 1 for that.
Anyone know what could be causing this?
Code:
"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv" "Some Directory With Spaces\\somefile.vcproj"
It compiles fine.
If I run the following PHP code
Code:
$compiler = '"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv"';
exec($compiler.' directorywithoutspaces\\somefile.vcproj,$output,$error_code);
It runs fine... but if I run
Code:
$compiler = '"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv"';
$arg = '"directory with spaces\\somefile.vcproj"';
exec($compiler.' '.$arg);
It spits back
Code:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Error code is obviouslly 1 for that.
Anyone know what could be causing this?