FYI, Function Headers for System
/* Get a listing of the files in sDir, separated by "\\n". */
string DirList (string sDir);
/* Get the entire contents of the file sFile. */
string FileReadAll (string sFile);
/* Copy the file sFrom to sTo. Returns >0 on success. */
int FileCopy (string sFrom, string sTo);
/* Delete the file sFile. Returns >0 on success. */
int FileDelete (string sFile);
/* Link the file sFrom to sTo. Returns >0 on success. */
int FileLink (string sFrom, string sTo);
/* Rename the file sFrom to sTo. Returns >0 on success. */
int FileRename (string sFrom, string sTo);
/* Symlink the file sFrom to sTo. Returns >0 on success. */
int FileSymlink (string sFrom, string sTo);
/* Get the CPU usage values for the current process. */
struct CPUUsage GetProcessCPUUsage ();
/* Get an estimate of memory used by the current process in bytes. */
int GetProcessMemoryUsage ();
/* Get the current system time in seconds since the epoch. */
int GetSystemTime ();
/* Get the current process TMI limit. The nwserver default is 131071. */
int GetTMILimit ();
/* Set the current process TMI limit, with a minimum of 16k and a maximum of 8M. */
void SetTMILimit (int nLimit);
/* Shut down the current process. If nForce is specified, the process will be
* force-killed in that number of seconds, in case it hangs during shutdown. */
void ShutdownServer (int nForce=0);