I want to prompt the user for a directory path.
The user can enter some text like C:\Pro
in command line, tap tab
button and the script should autocomplete the text toC:\Programs\
on another tab
it should change the text to C:\Program Files\
.
So, the script should scan folders and help user to navigate between them on typing.
Important: I can't use any GUI dialogs, because I am going to use the script on Win with no GUI.
This code will not work:
New-Object System.Windows.Forms.FolderBrowserDialog