Dear all,
After creating a .prn file to send to thermal printer I did some test directly from DOS cmd and it worked.
copy “C:\Temp\ est_sato.prn” “\Asus-PC\SATO CT408i”
Now I’m trying without success to do the same command from SC button script :
$output = shell_exec(“cmd copy ‘C:\Temp\ est_sato.prn’ ‘\Asus-PC\SATO CT408i’”);
echo “<pre>$output</pre>”;
There is no way that it works. I’m under Windows7 Wamp environment.
If I leave ‘cmd’ then the SC try to run the code but it goes stucked and I have to exit, clear all cookies and re-run all SC . The same with cmd.exe …
If I do not use ‘cmd’ and only copy ‘C:\Temp\ est_sato.prn’ '\Asus-PC\SATO CT408i then it gives me a error like Sintax of command wrong
I checked also php.ini and parameter is safe_mode = Off
Please I stucked here …