|
| |
.if2K/.ifNot2K
Description
- .if2K evaluates TRUE if running on Windows 2000, otherwise FALSE.
- .ifNot2K evaluates TRUE if NOT running on Windows 2000, otherwise
FALSE.
Syntax
|
%.if2K% |
|
Command1[ELSE Command2] |
|
%.ifNot2K% |
|
Command1[ELSE Command2] |
Parameters and Switches
Errorlevels and Output Variables
Examples, Notes and Instructions
| 2K |
C:\GuardPost>%.if2K% ECHO:This
is Windows 2000
This is Windows 2000
C:\GuardPost>%.ifNot2K% ECHO:This is NOT Windows 2000
C:\GuardPost> |
| |
|
NT
XP
K3 |
C:\GuardPost>%.ifNot2K% ECHO:This
is NOT Windows 2000
This is NOT Windows 2000
C:\GuardPost>%.if2K% ECHO:This is Windows 2000
C:\GuardPost> |
- Syntax is the same as the built-in IF command
Related .Mount/\Commands, #Constants,
$Functions, :Procedures
|
Resource |
|
Short Description |
|
.ifNT |
|
TRUE if the OS is Windows NT. Otherwise FALSE. |
|
.ifNotNT |
|
TRUE if the OS is NOT Windows NT. Otherwise FALSE. |
|
.ifXP |
|
TRUE if the OS is Windows XP. Otherwise FALSE. |
|
.ifNotXP |
|
TRUE if the OS is NOT Windows XP. Otherwise FALSE. |
|
.ifK3 |
|
TRUE if the OS is Windows Server 2003. Otherwise FALSE. |
|
.ifNotK3 |
|
TRUE if the OS is NOT Windows Server 2003. Otherwise FALSE. |
|
.GetOS |
|
Displays the current OS (NT/2K/XP/K3) -AND- updates #os |
|
#os |
|
Operating System Code (NT, 2K, XP or K3) |
|
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 |
|