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);