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

set two variables from single prompt

$
0
0

I am trying to write a script which will provide a single prompt and as a result provide multiple variables. For example I would like to prompt the user to enter their email address and from that input I would like to get the following three variables.

1. $v1 = the full email address

2. $V2 = the part of the address before @

3. $v3 =the domain.

Any suggestions?


Viewing all articles
Browse latest Browse all 21975

Trending Articles