I facing error while running the below php script. My php script having the little code for executing the .bat file which is located on my local server.
PHP file code : -
<?php
system("cmd /c C:\Users\my_computer_name\Desktop\sample.bat");
?>
sample.bat file code : -
@echo off
title This is your first batch script!
echo Welcome to batch scripting!
start calc.exe
When i remove start calc.exe
from .bat file code it works fine.
Thank you in Advance....