Tips, Tricks and Tools
... and Thoughts
(Move to ...)
Home
All Posts
Firefox Extensions
JavaScript Compiler and Encoder
Bulk Player for YouTube
Misc Tools
Support
▼
Tuesday, January 28, 2020
Powershell Script: Read input with default value
$defaultVal = 'No'
$inputVal =
Read-Host
-Prompt "Input something? [$defaultVal]"
if ($inputVal -eq '')
{
$inputVal = $defaultVal
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment