OS::GetCurrentDirectory

OS::GetCurrentDirectory(): String

Returns current working directory of the script process.

This function is available only in scripts run by the nxscript command line tool.

Return

Absolute path of the current working directory, or null if it cannot be determined.

println(OS::GetCurrentDirectory()); // Prints, for example, "/home/netxms"