Does anybody know how to copy a file binary in Java script??
in Dos the syntax is:
copy /b sourcefile destination
You`ll probably wonder why I want to do this well I`m making a database which also contains pathnames of .tiff files (drawings) and because a tif file is a printable format you can copy it binair direct into a printerqueue without any driver or userinterferance. It is a very fast and simple procedure the output is the original (tiff) size when possible or else fit to papersize.
When you just copy the file into a printerqueue you`ll get a lot of pages containing ascii rubish.
ps. for some newer printers/multifunctionals it is also possible to copy pdf files into the printerqueue.
Using or omitting the /B switch when copying to a device
When destination is a device (for example, COM1 or LPT1), the /B switch
causes MS-DOS to copy data to the device in binary mode. In binary mode, all
characters (including such special characters as CTRL+C, CTRL+S, CTRL+Z, and
carriage return) are copied to the device as data. Whereas, omission of the
/B switch causes MS-DOS to copy data to the device in ASCII mode. In ASCII
mode, such special characters as those previously listed may cause MS-DOS to
take special action during the copying process.
Hope that anyone can help me.
Thanks in advance Rene