This is the install guide for version 1.0. Open this page in version 1.1, the newest.
Install guide · version 1.0
5. Give each destination its directory
ContentsA destination writes each label as a file into a directory, from which the customer’s queue script sends it on to a printer. For each directory:
-
The customer names the directory its queue script watches, on the server that runs X3’s sessions where it can: how long X3 waits on a share of another computer that does not answer is not known. The script must take
*.zplin name order and leave*.zpl.tmpalone: a file is written under its temporary name, and renamed when it is whole. -
Whoever administers X3 lets X3 write there. X3’s runtime writes only where its configuration file allows:
configRuntime.json, in thecfgdirectory of the runtime, on every server that runs the folder’s sessions. In itssandboxsection, add the directory todirectories, writable, with the extensions the files take:{ "path": "E:\\Labels\\Receiving", "writable": true, "extensions": ["*"] }Backslashes are doubled. A narrower list of extensions must let in both names,
….zpl.tmpand….zpl. Where X3 runs specific code in untrusted mode, as on Sage’s cloud, the entry also needs"secured": true. A directory under the Sage tree, such as one under the folder’s own directory, may be allowed already; one outside it needs this step. -
The installer creates the destination in GESXNQLD: a code, type File, and the directory as its Path, exactly as the X3 server sees it. The directory must exist: X3 does not create it.
-
Whoever administers the server starts the queue script, unless the customer has a queue of its own. The example
XNQL_QUEUE.ps1sends one directory’s files to one printer that takes ZPL on its raw port, such as a Zebra on port 9100, in name order, leaving*.zpl.tmpalone; it moves each file it sent to the subdirectorysent\, deletes those older than 30 days, and logs every step inqueue.login the directory. A file the printer does not take stays, and the files after it wait. Copy it onto the server, for example toC:\Nortiqo\, try it by hand once, and then register it as a scheduled task that starts with the server, one task for each directory, as its first lines show:powershell -NoProfile -ExecutionPolicy Bypass -File C:\Nortiqo\XNQL_QUEUE.ps1 ` -Directory E:\Labels\Receiving -Printer 10.0.0.25The task’s user must be able to read, write and delete in the directory and reach the printer. The task needs no time limit: Windows stops a scheduled task after three days unless told otherwise.
Check: step 7. A directory X3 may not write gives every line of the print message 45, X3
may not write to directory …: then step 2 is not in place. A label that reaches the directory
but not the printer is a line WAITING in queue.log, with the reason.
Stuck? Ask your Sage partner, or write to info@nortiqo.com.