Use CePrinterSet From the Command Line
It is possible to send a configuration file to a Custom printer using CePrinterSet in the command line, if your printer is supported.
The format is as follows
/PRGC /O /F "path_file_psc" /PUSB /S "printer_port_identifier"
"/PRGC" this enable printer configuration
"/O" with this option, SW will create an output file with error code and description
"/F" this indicates that after there will be the path for the .psc file
"/PUSB" to specify USB Communication port
"/PCOM" to specify COM Communication port
"/PETH" to specify NET Communication port
"/S" specify the detail for the connection:
for COM is the port name (ex. "COM1")
for USB is the identification string (ex. "0DD4|0205|VKP80III_PRN_Num.:_0")
for ETH is the IP and the PORT (ex. "192.168.0.1:9100")
Examples
//180H- USB
Process p = new Process();
p.EnableRaisingEvents = false;
p.StartInfo.FileName = "C:\\Program Files\\CUSTOM\\CePrinterSet\\CePrinterSet.exe";
p.StartInfo.Arguments = "/PRGC /O /F \"C:\\kpm180H_std.psc\" /PUSB /S \"0DD4|0208|KPM180-H_PRN_NUM.:_0\"";
p.Start();
p.WaitForExit();
Console.WriteLine(p.ExitCode);
//Q3x - RS232
Process p = new Process();
p.EnableRaisingEvents = false;
p.StartInfo.FileName = "C:\\Program Files\\CUSTOM\\CePrinterSet\\CePrinterSet.exe";
p.StartInfo.Arguments = "/PRGC /O /F \"C:\\q3x.psc\" /PCOM /S \"COM6\"";
p.Start();
p.WaitForExit();
Console.WriteLine(p.ExitCode);
//K3 - ETH
Process p = new Process();
p.EnableRaisingEvents = false;
p.StartInfo.FileName = "C:\\Program Files\\CUSTOM\\CePrinterSet\\CePrinterSet.exe";
p.StartInfo.Arguments = "/PRGC /O /F \"C:\\k3_std.psc\" /PETH /S \"10.10.48.216:9100\"";
p.Start();
p.WaitForExit();
Console.WriteLine(p.ExitCode);
Related Articles
Update Printer with CePrinterSet
Upgrade process for firmware, flashdisk, or font module: Note: If updating multiple modules, the order should be; firmware, flashdisk, then font module. Install and run CePrinterSet Click "LOAD" - "From Device" Select the communication method for ...
CePrinterSet - Supported Printers
Printer FW Release Supporting Settings FW Release Supporting Upgrade KubeII-SPI 1.00+ 2.16 K3 1.00+ 1.32 Q3X 1.00+ 2.22 KPM180H 1.13+ 1.33 TPTCM60III 1.00+ 1.26 TPTCM112III 1.00+ 1.26 VKP80II-SX 1.00+ 4.30 VKP80III 3.00+ 4.57 TG02H 1.08+ 1.20 PLUS2 ...
Change Settings with PrinterSet
To use the tool: Install and Run PrinterSet Click [LOAD] -> [From Device] Select the method of communication for the printer Click [OK] Modify the parameters you wish to change Click [Save] -> [To Device] Check the "Device Setup" checkbox Click [OK] ...