叫用的批次檔NpA4.bat
========================================
@echo off
echo 列印 PLT 檔案,....
REM 檢查網路連線
if not exist \\PRO-1\DATA\CCL600\CCL600.END goto NO_LINK
REM 建立印表機網路連線
Net Use LPT1: \\PRO-1\CCL600>nul
REM 將圖檔轉90度
D:\CCL600\POuts.EXE %1 D:\CCL600
REM 叫用PHP執行列印
D:\CCL600\PHP D:\CCL600\PHPPLOT.PHP
REM 刪除暫存檔
del D:\CCL600\*.PB! /q
REM 取消印表機網路連線
net use LPT1: /Delete>nul
goto EXIT
:NO_LINK
echo 網路未正確連結.
goto EXIT
:EXIT
========================================
使用 PHP 做為 shell script
PHPPLOT.PHP
程式內容如下
========================================
<?php
$d = dir("./");
while (false !== ($entry = $d->read())) {
if(substr($entry,-3)=="PB!"){
$counter++;
echo $counter.",".$entry."\n";
system("print /d:LPT1 CCL600.a4>nul");//送出列印格式設定
system("print /d:lpt1 ".$entry);//列出圖檔
}
}
system("print /d:lpt1 eject");//送出跳頁指令
$d->close();
?>
========================================
HP Laserjet 5100 批次plt圖檔列印
電腦, 核心組件, 伺服器, 網路設備...
前往
- Software
- ↳ CodeCharge Studio
- ↳ CodeCharge
- ↳ DemoCharge
- ↳ SuperPDF
- ↳ 551einv
- ↳ E3進銷存
- 程式語言
- ↳ PHP
- ↳ CodeLobster PHP Edition
- ↳ Yii
- ↳ CodeIgniter
- ↳ Phalcon
- ↳ Symfony
- ↳ FuelPHP
- ↳ Zend Framework 2
- ↳ laravel
- ↳ WordPress
- ↳ ASP.NET/C#
- ↳ ASP/VBScript
- ↳ JSP
- ↳ Java Servlets
- ↳ ColdFusion
- ↳ Perl
- ↳ Java Script
- ↳ jQuery
- ↳ HTML + CSS
- ↳ jQuery
- ↳ nodejs
- ↳ VB6
- ↳ Git
- ↳ App Inventor 2
- ↳ bash
- ↳ C++/ VC/ OpenCV
- ↳ OpenCV
- ↳ go
- ↳ cordova
- ↳ python
- ↳ Xamarin
- ↳ Assembly
- 資料庫
- ↳ MySQL
- ↳ PostgreSQL
- ↳ ORACLE
- ↳ Access
- ↳ SQL Server
- ↳ SQLite
- ↳ MariaDB
- ↳ Mongodb
- 作業系統
- ↳ Linux
- ↳ Ubuntu
- ↳ CentOS
- ↳ Mint
- ↳ Mandriva
- ↳ Debian
- ↳ Red Hat Enterprise Linux
- ↳ Oracle Linux
- ↳ Fedora
- ↳ Kali Linux
- ↳ OpenSUSE
- ↳ Elementary OS
- ↳ Microsoft
- ↳ Server 2008 R2
- ↳ Server 2012 R2
- ↳ Server 2012
- ↳ 8
- ↳ 10
- ↳ System Center 2016
- ↳ NOVELL
- ↳ FreeBSD
- ↳ VMware
- ↳ VirtualBox
- ↳ Mac OS X
- ↳ Solaris
- ↳ iOS
- ↳ Android
- ↳ Cloud
- ↳ OpenStack
- ↳ Docker
- ↳ Proxmox VE
- ↳ CloudReady
- ↳ chrome
- 網頁伺服器
- ↳ apache
- ↳ tomcat
- ↳ nginx
- ↳ IIS
- ↳ JBoss
- ↳ weblogic
- ↳ WebHosting
- 硬體
- ↳ 硬體及週邊
- ↳ RouterOS
- ↳ LEGO NXT
- ↳ Arduino
- ↳ MSP430
- ↳ Raspberry Pi
- ↳ OpenERP
- ↳ Storage
- ↳ Server
- ↳ Brocade
- ↳ MODELS
- ↳ FortiGate
- 軟體
- ↳ sublime
- ↳ LibreNMS