mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01:00
Update locate-zip-code.ps1
This commit is contained in:
parent
d80ef764d7
commit
03efbe6537
@ -13,12 +13,12 @@ if ($CountryCode -eq "" ) {
|
|||||||
if ($ZipCode -eq "" ) {
|
if ($ZipCode -eq "" ) {
|
||||||
$ZipCode = read-host "Enter the zip code"
|
$ZipCode = read-host "Enter the zip code"
|
||||||
}
|
}
|
||||||
|
$PathToDataDir=(get-item $MyInvocation.MyCommand.Path).directory
|
||||||
|
$PathToDataDir="$PathToDataDir/../Data"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
write-progress "Reading zip-codes.csv..."
|
write-progress "Reading zip-codes.csv..."
|
||||||
$PathToData=(get-item $MyInvocation.MyCommand.Path).directory
|
$Table = import-csv "$PathToDataDir/zip-codes.csv"
|
||||||
$PathToData="$PathToData/../Data"
|
|
||||||
$Table = import-csv "$PathToData/zip-codes.csv"
|
|
||||||
|
|
||||||
$FoundOne = 0
|
$FoundOne = 0
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
|
Loading…
Reference in New Issue
Block a user