I have a php code that with the exec()
function executes a .bat
file that is hosted on my computer. I'm trying to show me on the page that I created to execute that function, a progress bar or a percentage of progress of what's left for the .bat file to finish running. Any ideas?
exec('start /B C:\Users\Users\Desktop\backupcopia.bat', $output);
In the script I have the following:
@echo off
robocopy "C:\Users\Users\Desktop\Folder1" "F:\Backup\Copy