Not able run COPY cmd command starting from PHP
Posted by: giovanni (178.236.161.---)
Date: April 23, 2014 03:04PM

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\\test_sato.prn" "\\Asus-PC\SATO CT408i"

Now I'm trying without success to do the same command from PHP program:

exec("cmd copy 'C:\\Temp\\test_sato.prn' '\\Asus-PC\SATO CT408i'"winking smiley;

I did test with also shell and other possibilities


There is no way that it works. I'm under Windows7 Wamp environment.


I checked also php.ini and parameter is safe_mode = Off

I think it's a matter of environment under Windows (W7 - WampServer 2.1)

Please help me soon... I stucked here ....

Options: ReplyQuote


Sorry, only registered users may post in this forum.