The close-command ignores variable.
Example:
@set var = {dlgchoose|Choose option:|Restart=SYSTEM=restart QUIET+Logoff=SYSTEM=logoff QUIET+...}
Close {$var}
The close-command ignores variable.
Example:
@set var = {dlgchoose|Choose option:|Restart=SYSTEM=restart QUIET+Logoff=SYSTEM=logoff QUIET+...}
Close {$var}
I doubt using variables to specify arguments (rather than argument values) works.
i.e. You could set {$var} to restart and use Close SYSTEM={$var} but you couldn't set {$var} to SYSTEM=restart and use Close {$var}
Instead try this:
@set var = {dlgchoose|Choose option:|Restart=restart+Logoff=logoff}
Close SYSTEM={$var} QUIET
Or this:
@set var = {dlgchoose|Choose option:|Restart=SYSTEM=restart QUIET+Logoff=SYSTEM=logoff QUIET}
dopusrt /CMD Close {$var}
I think both of those should work although I haven't tested it as I don't want to restart my computer.
I also could use full command and set only {$var} at second line.
OK, very good and fair enough.
But when did the Dopus command Close System Logoff get added ?
I don't see in either the release notes or the manual.
Did I miss it somewhere ?
Regards and Thankyou,
Scred
It's in my copy of the manual.
Now I see it.
Close System Logoff is discussed in the manual under Opus Raw commands.
It is also noted that Logoff is the deault action for System.
However, Close System Logoff is not explicitly listed in the Appendix Internal Commands Summary.
It is listed though, that Close System with no parameters will log off the current user.
So does Close System Logoff really do anything differently than Close System ?
Close SYSTEM=Logoff is the same as Close SYSTEM. Logoff is the default.