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