Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Help pseudo code the logic of this function

$
0
0

I need to take a variable $year and find its destination.   The destinations consist of 3 servers with 3 drives each. I was originally looking at a hash table, but then thought there has to be a way to do this without hand typing in every year and it's corresponding server.  Below is the Server/Drive Table.

Was thinking of a function the will take the $year and programmatically find the correct server/drive based off the info below.  I was thinking some sort nested loops, but the logic is eluding me.


Viewing all articles
Browse latest Browse all 21975

Trending Articles