Wednesday, September 19, 2018

Unable to Print Integrated Shipping Label via Thermal Printer (EPL2) Due to DOS error "The filename, directory name, or volume label syntax is incorrect.".

The DOS error "The filename, directory name, or volume label syntax is incorrect." usually shows when the NET USE command is applied. This error has been observed only when there's no space in between "Copy" and "%1".

 

To correct the error, perform the following:

  1. Right click the label.bat.
  2. Select Edit.
  3. Insert a Space in "Copy" and "%1".
  4. Save. It should now show as:

Net use LPT2: \\%ComputerName%\<PrinterName>

Copy %1 LPT2

Net use LPT2: /Delete

 

 

 

 

No comments:

Post a Comment