|
| |
.ifServer/.ifNotServer
Description
- .ifServer evaluates TRUE if running on a Server Operating System (NT Server, Windows 2000
Advanced Server, etc.), otherwise FALSE.
- .ifNotServer evaluates TRUE if NOT running on a Server Operating System, otherwise
FALSE.
Syntax
|
%.ifServer% |
|
Command1[ELSE Command2] |
|
%.ifNotServer% |
|
Command1[ELSE Command2] |
Parameters and Switches
Errorlevels and Output Variables
Examples, Notes and Instructions
NT
2K
K3 |
C:\GuardPost>%.ifServer% ECHO:This
is a Server OS
This is a Server OS
C:\GuardPost>%.ifNotServer% ECHO:This is NOT a Server OS
C:\GuardPost> |
| |
|
NT
2K
XP |
C:\GuardPost>%.ifNotServer% ECHO:This
is NOT a Server OS
This is NOT a Server OS
C:\GuardPost>%.ifServer% ECHO:This is a Server OS
C:\GuardPost> |
- Syntax is the same as the built-in IF command
Related .Mount/\Commands, #Constants,
$Functions, :Procedures
|
Resource |
|
Short Description |
|
.ifWkstn |
|
TRUE if running on a Workstation OS. Otherwise FALSE. |
|
.ifNotWkstn |
|
TRUE if NOT running on a Workstation OS. Otherwise FALSE. |
|
.ifDC |
|
TRUE if running on a Domain Controller. Otherwise FALSE. |
|
.ifNotDC |
|
TRUE if NOT running on a Domain Controller. Otherwise FALSE. |
|
.GetRole |
|
Displays the current Role (Server/Wkstn) -AND- updates #role |
|
#role |
|
Operating System Role (Server/Wkstn) |
|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
|