Category : batch-file

I am migrating a web function from a to-be-decommissioned Windows 2003 server running PHP 5.2.6 to a Windows 2012 server running PHP 7.3.9. On the original server, the following PHP code would execute: $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Exec("cmd /c ".$filePath); $sStdOut = $oExec->StdOut->ReadAll; $sStdOut would then be parsed to inform the user of ..

Read more

I’m currently trying to batch jobs together using the Bus dispatch but for some reason any parameters I pass to the constructor gets completely ignored and is not there when I run the jobs with a worker. $jobs = $chunkedShopifyOrders->map(function($orders) use($salesChannel){ // MigrateOrder is a job return new MigrateOrder($orders, $salesChannel->id); }); Bus::batch($jobs)->dispatch(); And in my ..

Read more

i have multiple files on a folder, i need open a specific file from PHP page after click on a buttom, this are printer files. this is how works on my CMD SHELL START D:testtest.arx4 i try to use exec on my PHP CODE like this exec (‘START D:testtest.arx4’); but this command dosent work for ..

Read more

I try to run my vbs script with php but is not running but im running it with cmd without problem (same command) getting it from ProcessHacker. PHP $WshShell = new COM(‘WScript.Shell’); $obj = $WshShell->Run(‘C:WindowsSystem32wscript.exe C:/xampp/htdocs/photoshop/run_photoshop.vbs ARG1’, 1, true); CMD "C:WindowsSystem32wscript.exe" C:/xampp/htdocs/photoshop/run_photoshop.vbs ARG1 What is the problem with PHP? Already testing on windows server 2016 ..

Read more