I am using the programmed windows tasks to execute a PHP file every X time, the thing is that when executing the program screen is put and then I want it to be in the background ... The first task I did was this:
C:\xampp\php\php.exe -f c:/xampp/htdocs/tarea.php
The next thing I wanted to try was to run the CMD in the htdocs directory and use > NUL 2> & 1 to run in the background, the thing is that I did not know how to do so that when the cmd is opened with the task scheduler, it sends PHP tarea.php Automatically ... I appreciate any help either for the first case, the second or some other way.