Powershell Function Pads an IP v4 address with leading zeros

Function IPPadded receives as input a standard ipv4 address.  It returns the address with leading leading with our without the dotsfor example assume the ip address is:$ipaddress = "129.10.3.47"[string]$ipdots[string]$ipnodotsthe call$ipdots, $ipnodots = ippadded $ipaddress$ipdot

IPpadded.ps1
 
 
 
 
 
(0)
230 times
Add to favorites
2/18/2018
E-mail Twitter del.icio.us Digg Facebook