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:
- Right click the label.bat.
- Select Edit.
- Insert a Space in "Copy" and "%1".
- Save. It should now show as:
Net use LPT2: \\%ComputerName%\<PrinterName>
Copy %1 LPT2
Net use LPT2: /Delete
No comments:
Post a Comment