I am using XAMP for magento2. I am not able to run commands and getting error:
php is not recognized as an internal or external command, operable
program or batch file
I try these commands: C:\xampp\htdocs\magento2>php bin/magento indexer:reindex
, php\bin\magento indexer:reindex
Best Answer
You can run php pages using php.exe create some php file with php code and in the cmd write:
Example Case for you:
On XAMPP
It will work for you.
EDIT:
cd c:\xampp\php\