锁定机器
动词:lockWorkStation
可从以下位置获取: <Enterprise>
锁定要执行命令的机器。
语法
lockWorkStation
示例
如果用户在输入框命令生成的输入中输入“是”,那么使用此命令锁定要执行命令的机器。
defVar --name blockSuccess --type String
// Opens a box for the user to type "yes", if he wants to block the machine.
inputBox --title "Type \"yes\" to lock" --prompt "Type here" --value no blockSuccess=value
if --left "${blockSuccess}" --operator "Equal_To" --right yes
// Blocks the machine, if the user typed "yes".
lockWorkStation
endIf