I have an issue with the command prompt opened in such way (and can't seem to find any answer anywhere) on my Windows (Windows 7 Professional 64-bits).
I have added several folder path added to the
%Path% environment variable (for command line tools such as PHP, PsTools, cURL, etc.) but they are not found when tried from a command prompt opened from explorer as described in this tutorial:
Quote:
C:\>php.exe -v
'php.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\>echo %Path%
%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\
Drivers\AMD Catalyst Suite 11.11\ATI.ACE\Core-Static;%ProgramFiles(x86)%\PHP 5.3.10\ext;%ProgramFiles(x86)%\PHP 5.3.10;%ProgramFiles%\Slik Subversion 1.7.4\bin;%ProgramFiles(x86)%\PsTools 2.44;%ProgramFiles(x86)%\wget 1.11.4;%ProgramFiles%\cURL 7.23.1;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\OpenVPN 2.2.1\bin;C:\Program Files (x86)\S.M.A.R.T. Monitoring Tools 5.42-1\bin
If I open a command prompt from
Start Menu or the
Run dialog box it works:
Quote:
Microsoft Windows [version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved
C:\Users\user>php.exe -v
PHP 5.3.10 (cli) (built: Feb 2 2012 20:27:51)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
C:\Users\user>echo %Path%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Drivers\AMD Catalyst Suite 11.11\ATI.ACE\Core-Static;C:\Program Files (x86)\PHP 5.3.10\ext;C:\Program Files (x86)\PHP 5.3.10;C:\Program Files\Slik Subversion 1.7.4\bin;C:\Program Files (x86)\PsTools 2.44;C:\Program Files (x86)\wget 1.11.4;C:\Program Files\cURL 7.23.1;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\OpenVPN 2.2.1\bin;C:\Program Files (x86)\S.M.A.R.T. Monitoring Tools 5.42-1\bin
Is there a reason (and a solution) for that ?
Thanks