· Feb 15 2m read

How to use $ZF(-100)

InterSystems FAQ rubric

The $ZF(-100) command is used in the following format.

$ZF(-100, flags, command name, command arguments)

The "/shell" flag is required when running OS commands.
For example, use mkdir like this:

 // mkdir C:\temp\newdir
 Write $ZF(-100, "/shell", "mkdir", "C:\temp\newdir")

If a command has multiple arguments, enclose them in double quotes and separate them with commas, as in the example below.

 // move C:\temp\a.txt C:\temp\a2.txt
 Write $ZF(-100, "/shell", "move", "C:\temp\a.txt", "C:\ temp\a2.txt") // net use Z: \\filesrv\public /user:user password
 Write $ZF(-100, "/shell", "net", "use", "Z:", "\ \filesrv\public", "/user:user", "password")

Also, use synchronous/asynchronous execution as follows.

  // call BATPATH ​​Call batch file set
  set status = $ZF(-100, "/shell", "call", BATPATH) // synchronous
  set status = $ZF (-100, "/shell /async", "call", BATPATH) // async

Please see the document below for details.

How to use $ZF(-100) [IRIS]

How to use $ZF(-100)

The $ZF(-100) command can be used in the following versions that support the January 2018 SV vulnerability (as of January 2019).

* Caché / Ensemble *    
   2017.2.1.8 01.3

 All versions since 2018.1

Discussion (0)1
Log in or sign up to continue