I am running Xampp on my Windows 7 machine and was wondering if and how I could run commands for xampp via a command line. commands like php phpfile.php
Any advice w
In the version 3.2.4 of the XAMPP Control Panel, there is button that can open a command line prompt (red rectangle in the next figure)
After pressing the button, you will see the command prompt window.
From this window you can navigate through the different folders and start the different services available.
You can set environment variables as mentioned in the other answers (like here)
or
you can open Start > CMD as administrator and write
C:\xampp\php phpfile.php
Please renember: When you change the path variable, you need to restart the console otherwise the path variable is not updated and does not seem to work.