EICS
Member
Can someone please assist to help with a command prompt script from the command prompt "CMD" windows script host
from my SCADA i want to check the status of a device.
the executable to do this is as follows
isactive.exe
this will either return "Active" or "Standby" depending on the devices status
i would like to display a "message window" by using the following code in command prompt but i do not know the syntax.
IF return is Active then
msg %username% Device is in "ACTIVE" mode !
ELSE
msg %username% Device is in "STANDBY" mode !
a self closefeature would also be nice with both windows after 5 seconds if possible if not the ok button that is displayed as default will suffice
from my SCADA i want to check the status of a device.
the executable to do this is as follows
isactive.exe
this will either return "Active" or "Standby" depending on the devices status
i would like to display a "message window" by using the following code in command prompt but i do not know the syntax.
IF return is Active then
msg %username% Device is in "ACTIVE" mode !
ELSE
msg %username% Device is in "STANDBY" mode !
a self closefeature would also be nice with both windows after 5 seconds if possible if not the ok button that is displayed as default will suffice