mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +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 "" ) {
|
||||
$ZipCode = read-host "Enter the zip code"
|
||||
}
|
||||
$PathToDataDir=(get-item $MyInvocation.MyCommand.Path).directory
|
||||
$PathToDataDir="$PathToDataDir/../Data"
|
||||
|
||||
try {
|
||||
write-progress "Reading zip-codes.csv..."
|
||||
$PathToData=(get-item $MyInvocation.MyCommand.Path).directory
|
||||
$PathToData="$PathToData/../Data"
|
||||
$Table = import-csv "$PathToData/zip-codes.csv"
|
||||
$Table = import-csv "$PathToDataDir/zip-codes.csv"
|
||||
|
||||
$FoundOne = 0
|
||||
foreach($Row in $Table) {
|
||||
|
Loading…
Reference in New Issue
Block a user