11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System and Other FunctionsUSER>WRITE $ZUTIL(147,"C:\\MyTest.txt") /* Existing no blanks */C:\\MyTest.txtUSER>WRITE $ZUTIL(147,"C:\\FakeFile.txt") /* Non-Existing no blanks */C:\\FakeFile.txtUSER>WRITE $ZUTIL(147,"C:\\Fake File.txt") /* Non-Existing 1 blank */"C:\\Fake File.txt"USER>WRITE $ZUTIL(147,"C:\\My Test.txt") /* Existing 1 blank */C:\\MYTEST~1.TXTUSER>WRITE $ZUTIL(147,"C:\\My Test Doc.txt") /* Existing 2 blanks */C:\\MYTEST~2.TXTUSER>WRITE $ZUTIL(147,"C:\\My Test File.txt") /* Existing 2 blanks */C:\\MYTEST~3.TXTUSER>The following example uses $ZUTIL(147) to handle a pathname for $ZF(-1). A pathnamecontaining spaces is handled as appropriate for the host platform. A pathname that does notcontain spaces is passed through unchanged.SET x=$ZF(-1,$ZUTIL(147,"C:\\My Test.txt"))See Also• $ZF(-1) function• $ZF(-2) function• $ZUTIL(12) Translate file name to canonical form function$ZUTIL(158)Displays currently installed printers.$ZUTIL(158,0)$ZUTIL(158,1,n)$ZU(158,0)$ZU(158,1,n)ParametersnA sequential integer (counting from 1) assigned to a printer.DescriptionThe $ZUTIL(158,0) function returns the number of printers currently installed on your system,counting from 1.716 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!