Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: I have an issue with the command prompt


26 May 2012   #1

Windows 7 Pro 64 bits
 
 
I have an issue with the command prompt

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

My System SpecsSystem Spec
.

Reply

 I have an issue with the command prompt




Thread Tools



Similar help and support threads for2: I have an issue with the command prompt
Thread Forum
Command prompt - taking ownership - issue General Discussion
Help needed executing command prompt command General Discussion
Solved Issue with .exe and Command Prompt General Discussion
Run administrative command prompt from command prompt General Discussion
Command Prompt Build Issue General Discussion
Command Prompt command <ipconfig> not working Network & Sharing
Strange Command Prompt Issue General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:39 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33