sysutils module
Core framework Console Desktop
The sysutils module offers a collection of system utility functions
| Property | Description | Access | Type |
|---|---|---|---|
| sysutils.computer | Get the computer's name | readonly | string |
| sysutils.drives | Get a list of current available disk drives | readonly | table |
| sysutils.folders | Get a Windows known folder location | readonly | string |
| sysutils.isadmin | Check if current user is Administrator | readonly | boolean |
| sysutils.sysarch | Get the current Windows architecture | readonly | string |
| sysutils.user | Get the current user name | readonly | string |
| Functions | Description | Return value |
|---|---|---|
| sysutils.addrecent() | Add an item to the Windows recent documents list | - |
| sysutils.dirsize() | Gets the total size of a directory | number nil |
| sysutils.diskusage() | Gets the disk space usage for a drive | numbers nil |
| sysutils.isinstance() | Check if the current application is already running | boolean |
| sysutils.recyclebin.empty() | Empties the Recycle Bin | boolean |
| sysutils.recyclebin.send() | Send a file or folder to the Recycle Bin | boolean |
| sysutils.shellexec() | Perform an operation on a file or directory | boolean |
| sysutils.shellupdate() | Notify the Windows Shell about changes | - |
| sysutils.watch() | Monitor a specified directory for changes | |
| sysutils.where() | Find a file in the current system path |
| Object | Description |
|---|---|
| Process | Object that represent a Windows process |