We run NetSuite for our shipping software and use Zebra ZP450 printer to print the thermal label. The software downloads a .zpl file which I have assigned to run with a batch file, script here:
Net use LPT2: \%ComputerName%ebraFedex
Copy %1 LPT2
Net use LPT2: /Delete
I have installed this on probably 20 or more computers without an issue. But the last two will initiate the batch file but not print.
I was able to hit pause on the batch file and here is what I got:
C:users oahdownloads et use LPT2: (ComputerName)ebraFedex
The command completed successfully
C:UsersNoahDownloadsCopy LPT2
The system cannot find the file specified. 0 files copied
C:UsersNoahDownloads>Net use LPT2: /Delete
I've checked my file association, which seems correct since I see the command prompt flash on the screen. I have no idea here...
Working successfully on another computer
Problem on puzzling computer
question from:https://stackoverflow.com/questions/66053516/printing-zpl-file-using-batch-file-issue