Here's my batch to transfer file to my venerable TLP2844:
@ECHO OFF
SETLOCAL
FOR %%a IN (%*) DO (
IF EXIST "%%a" (COPY /b "%%~a" \%computername%TLP2844
) ELSE (
IF EXIST "%%a.txt" (
COPY /b "%%~a.txt" \%computername%TLP2844
) else (
ECHO Neither "%%a" nor "%%a.txt" appears to EXIST
)
)
)
where I have a printer called TLP2844
installed as a ZDesigner TLP 2844
device on USB003.
The problem, as shown by the graphics I've included in your question (saves running off chasing links) is that the label file C:usersmelandownloadsUPSSHIPPINGLABEL1700448.zpl
is being provided to the batch as %1
(first parameter). On the problem installation, no filename (presumably C:usersNoahdownloadsUPSSHIPPINGLABEL???????.zpl
is being provided to the batch as %1
.
Therefore it's not a batch problem, but a problem with Netsuite
.
From your .pdf, on page 26 :
To install a thermal printer driver on a Windows PC:
...
5. In the Share Name field, enter the name of the printer. For example, LP 2844
.
The printer name cannot contain spaces.
So you're told the printer name cannot contain spaces, but the example printer name contains a space....Excellent! (shows my level of confidence in the product, but not actually directly relevant to the problem) :(
Personally, I'd change your batch file to
Copy %1 \%ComputerName%ebraFedex
Perhaps you'd try that after fixing the problem where Netsuite
fails to deliver the filename to the batch. Perhaps it's set up to produce .pdf
s on the computer in question (That's a wild guess)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…