Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to os-print-client directory.

  2. Configure the printer.properties file.

  3. Command to run the program: java -Dconf=printer.properties -jar os-printer-client-1.1.0.jar

How to Install as service on windows?

A. Create a batch file:

Code Block
@echo off
cd <PATH-TO-OS-PRINTER-CLIENT-DIR>
java -Dconf=printer.properties -jar os-printer-client-1.1.0.jar >> <PATH-TO-LOG-FILE> 2>&1

B. Install as a service

Open command prompt, and run the below command to install it as a service.

Code Block
sc create "OSPrinterClient" binPath= "<BATCH-FILE-PATH>\start_os_printer_client.bat"