注销
动词:logoff
可从以下位置获取: <Enterprise>
断开机器上的当前用户会话连接。
语法
logoff
示例
如果用户在输入框命令生成的输入中输入“是”,那么使用注销命令断开当前会话的连接。
defVar --name logoffResult --type String
// Opens a box for the user to type "yes" if they want to disconnect.
inputBox --title "type \"yes\" to logoff" --prompt "Type here" --value no logoffResult=value
if --left "${logoffResult}" --operator "Equal_To" --right yes
// Disconnect if the user typed "yes".
logoff
endIf