RPA.Desktop.OperatingSystem
Get machine boot time
return: | boot time in seconds from Epoch |
---|
Examples
${epoch} Boot Time In Seconds From Epoch
Get computer boot time in seconds from Epoch or in datetime string.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
as_datetime | bool | False | if True returns datetime string, otherwise seconds, defaults to False |
datetime_format | str | %Y-%m-%d %H:%M:%S | datetime string format, defaults to "%Y-%m-%d %H:%M:%S" |
param as_datetime: | |
---|---|
if True returns datetime string, otherwise seconds, defaults to False | |
param datetime_format: | |
datetime string format, defaults to "%Y-%m-%d %H:%M:%S" | |
return: | seconds from Epoch or datetime string |
Examples
${boottime} Get Boot Time
${boottime} Get Boot Time as_datetime=True
${boottime} Get Boot Time as_datetime=True datetime_format=%d.%m.%Y
Get computer memory stats and return those in bytes or in humanized memory format.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
humanized | bool | True | if False returns memory information in bytes, defaults to True |
param humanized: | |
---|---|
if False returns memory information in bytes, defaults to True | |
return: | memory information in dictionary format |
Examples
&{mem} Get Memory Stats
&{mem} Get Memory Stats humanized=False
Check if process exists by its name
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
process_name | str | null | search for this process |
strict | bool | True | defines how match is made, default True which means that process name needs to be exact match and False does inclusive matching |
param process_name: | |
---|---|
search for this process | |
param strict: | defines how match is made, default True which means that process name needs to be exact match and False does inclusive matching |
return: | process instance or False |
Examples
${process} Process Exists calc
${process} Process Exists calc strict=False