Friday, March 4, 2011

PHP automatically print files on windows

<?php
// Method 1:
exec('print /d:\\\\192.168.0.11\\HP3050 c:\\test.html');

// Method 2:
exec('start /min notepad /P c:\\test.txt');
?>

No comments: