The Run command should be
C:\Path\to\php.exe -f "C:\Path\to\file.php"
From the command line help of php.exe:
-f Parse and execute <file>.
More Related Contents:
- How To Run PHP From Windows Command Line in WAMPServer
- PHP: running scheduled jobs (cron jobs)
- Can’t send email with php mail function on windows 8
- Can you get a Windows (AD) username in PHP?
- How do I install cURL on Windows?
- Connect to SQL Server through PDO using SQL Server Driver
- Use php to set cron jobs in Windows
- Upgrading PHP in XAMPP for Windows?
- php How do I start an external program running – Having trouble with system and exec
- PHP Install SSH2 on Windows machine
- netbeans shows “Waiting For Connection (netbeans-xdebug)”
- How do I run a PHP script using windows schedule task?
- Install Imagick for PHP and Apache on Windows
- How to set the env variable for PHP?
- Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?
- Run Cron Job on PHP Script, on localhost in Windows
- PDO drivers no value in Windows
- PHP on Windows with XAMPP running 100 times too slow
- ‘php.exe’ is not recognized as an internal or external command, operable program or batch file
- How do I enable php to work with postgresql?
- Setting a PHP script as a Windows Service
- Make a path work both on linux and Windows
- access denied for user @ ‘localhost’ to database ” [closed]
- How to downgrade or install a specific version of Composer?
- Is there any way to install Composer globally on Windows?
- Windows CMD.exe “The system cannot find the path specified.”
- Does memcached.dll exist?
- Using windows authentication with php?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Composer install error – requires ext_curl when it’s actually enabled