Update Documentation - What is new in Ring 1.5? - SystemCmd()
@@ -137,6 +137,9 @@ New Functions
* Print2Str()
* ListAllFiles()
+* SystemCmd()
+
+(1) The Print2Str() is a new function added to StdLib
Example:
@@ -157,7 +160,7 @@ Output:
In Year
2017
-The ListAllFiles() is a new function added to StdLib
+(2) The ListAllFiles() is a new function added to StdLib
Using this function we can quickly do a process on a group of files in a folder and it's sub folders.
@@ -178,6 +181,25 @@ Example:
see listallfiles("b:/ring/ringlibs/weblib","") # All Files
+(3) The SystemCmd() is a new function added to StdLib
+
+The function will execute a system command like the System() function but
+will return the output in a string.
+
+Example:
+
+.. code-block:: ring
+
+ cYou = SystemCmd("whoami")
+ See "SystemCmd: whoami ====="+ nl + cYou +nl
+
+Output:
+
+.. code-block:: ring
+
+ SystemCmd: whoami =====
+ desktop-umberto\umberto
+
.. index::
pair: What is new in Ring 1.5?; Better WebLib
