----^--->
/\

//\\
//The\
/Sy
stem\
////
Guard
\

In the mount of the LORD it shall be seen. Genesis 22:14

ListMac

Booming Or Fuming? | MasterCatalog | ntlib (FREE) | NTCmdLib | MtCmds | Scripts | Almost Free | TheGuardBook | Help

 

Types of
.Mount/\Commands

.CrystalClear | .ExactName | .ExitELn | .GetValue | .ifCondition | .ifELn | .IsPattern | .ListValue | .NetValue | .NowValue | .RedirRapids | .ReliableReporting | .RestoreValue | .SetELn | .ValueEcho

.ListValue
Series

  ListAvail | ListCD | ListIPAddr | ListIPGateway | ListIPMask | ListMac | ListNic

.ListMac

Description

  1. Lists all MAC Addresses of the local machine as "xx-xx-xx-xx-xx-xx", "xx-xx-xx-xx-xx-xx", etc., one per line)

Syntax

At the Command Prompt

C:\>. ListMac    
C:\>%.ListMac%    
C:\>FOR /F %A IN ('%.eListMac%') DO @ECHO:%A    

In a Script

%.ListMac%    
FOR /F %%A IN ('%.eListMac%') DO @ECHO:%%A    

Parameters and Switches

none

   

Errorlevels and Output Variables

Display to
STDOUT

 

Value of
#Mac

 

Error
Level

  Description of Result

AB-CD-EF-01-23-45
67-89-01-AB-CD-EF

 

n/a

 

n/a

  All Mac Addresses displayed to STDOUT.

Examples, Notes and Instructions

NT
2K
XP
K3
C:\GuardPost>. ListMac
AB-CD-EF-01-23-45
67-89-01-AB-CD-EF
C:\GuardPost>%.ListMac%
AB-CD-EF-01-23-45
67-89-01-AB-CD-EF
C:\GuardPost>FOR /F %A IN ('%.eListMac%') DO @ECHO:%A
AB-CD-EF-01-23-45
67-89-01-AB-CD-EF


Related .Mount/\Commands, #Constants, $Functions, :Procedures

Resource

  Short Description
.GetMac   Displays the current MAC (Hardware Address) as nn-nn-nn-nn-nn-nn, or none or multi) -AND- updates #mac
.ListIPAddr   Lists one or more IP Addresses as nnn.nnn.nnn.nnn or returns nothing
.ListIPGateway   Lists one or more Default Gateway Addresses as nnn.nnn.nnn.nnn or returns nothing
.ListIPMask   Lists one or more Subnet Masks as nnn.nnn.nnn.nnn or returns nothing
.ListNic   Lists one or more NIC "Description" text(s) from "IPConfig /all" as "text" or returns nothing
#IPAddr   IP Address in  nnn.nnn.nnn.nnn format
#IPMask   IP Subnet Mask in nnn.nnn.nnn.nnn format
#IPGateway   IP Default Gateway in nnn.nnn.nnn.nnn format
#nic   NIC description text from "IPConfig /all"

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

.ListValue
Series

  ListAvail | ListCD | ListIPAddr | ListIPGateway | ListIPMask | ListMac | ListNic
/\
//\\
//
The\
/Sy
stem\
////
Guard
\
COME ON UP WITH US!
and
Congratulations On Your Decision
to
RISE ABOVE
THE REST!

^
/
!\
/LIB\

TheSystemGuard.com [Revised: 2007-03-29]
Copyright © 1995-2007, JWC
Computer Communications,
All Rights Reserved, Worldwide.
 Disclaimer       Privacy       About Us       More


Communication Is Business!

We Master It With Knowledge!

^
/
.\
/M^C\