Hi
How do I save an input given by me to a variable?
For example, when I run a script, which contains the Test-Path command, the Terminal window asks me to insert a path.
How do I save this path to a variable?
Thanks
Bye
Hi
How do I save an input given by me to a variable?
For example, when I run a script, which contains the Test-Path command, the Terminal window asks me to insert a path.
How do I save this path to a variable?
Thanks
Bye
Balubeto,
Welcome to the forum.
You assign it just like any other information.
$Variable = 'whatever you want to save in this variable'
Or is your question how to read input from the console? Then it would be
Please always read the help for the cmdlets you’re about to use completely including the ewxamples to learn how to use them.