system

Original VisualText 2 documentation (2001–2013). For the current NLP++ tools, see visualtext.org.

Purpose

Execute string commandStr as operating system command.

Syntax

returnedBool = system(commandStr)

returnedBool - type: bool
commandStr - type: str

Returns

True if successful execution of command.

Remarks

An "escape to the shell" from inside NLP++.

Example

@CODE
system("dir > c:\\listing.txt"); # List contents of current working directory.
@@CODE

See Also

Special Functions