Article
· 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
  BATPATH="C:\temp\test.bat"
  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 *    
   2013.1.7.974.6
   2014.1.5.851.3
   2015.1.4.803.6
   2015.2.5.953.3
   2016.1.4.104.2
   2016.2.3.903.4
   2017.1.3.317.0
   2017.2.1.8 01.3
   2017.2.2.865.0

 All versions since 2018.1

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