Hi,
I'm using Browser Print and a GK420d printer. I've stored a format, "TRIAL.ZPL" on the E: drive. I want to send a command from my javascript through Browser Print that tells me if my format is there. I know I can use the following in ZPLII:
^XA
^HWE:TRIAL.ZPL
^XZ
but that returns a multiline string like this:
- DIR E:TRIAL.ZPL * E:TRIAL.ZPL 50
- 1516624 bytes free E: ONBOARD FLASH
which is a pain to parse. I'd like a Boolean return instead. Is there a command (SGD, ZPL, etc.) that will do that?
command to answer hasFormat with boolean |
1 Replies
Hi Jennifer, I'm afraid not. Even all of our tools parse the string. There are a few other, easier to parse, options with some of the newer printers, but even those are not ideal for this use case.