Thread: Parameters
View Single Post
Old 01-04-2008   #1 (permalink)
Pimp Daddy


 
 

Parameters

I have the following code in a script called 'IP':

function total()
{
ipconfig -all
}

function MAC()
{
$Name = ipconfig -all | findstr "Physical";
$Name.Replace("Physical", "MAC")
}

function IPAdd()
{
ipconfig | findstr "IP"
}

function subnet()
{
ipconfig -all | findstr "Subnet"
}



What do I need to add so I can e.g. call the MAC function by doing this at
the command line?:

../IP -MAC
My System SpecsSystem Spec