Applies To:
  • CitectSCADA 6.1, 7.0, 7.1
  • CitectHMI 6.1, 7.0, 7.1
  • CitectFacilities 6.1, 7.0, 7.1
  • VijeoCitect 6.1, 7.0, 7.1


CSV_WinUtl_ShellExec() function is not working properly



The reason for the issue is the argument order for the function CSV_WinUtl_ShellExec() is not defined in the right order in help section. The help section states that the arguments are CSV_WinUtl_ShellExec(sOperation,sFile,sArgs,sDir,iShowCmd) but the correct argument order in the CSV_Include file is

CSV_WinUtl_ShellExec(STRING sFile, STRING sArgs = "", STRING sDir = "", STRING sOperation = "", INT iShowCmd = 1)

so the correct syntax for the function is

CSV_WinUtl_ShellExec(sFile, sArgs, sDir, sOperation, iShowCmd)
Once you define the correct syntax the function should start working fine. Citect is already aware of the issue and help section will be corrected in the future releases.