Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 28, 2016, 01:48:01 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Using the folder contents of a directory to auto fill an input window  (Read 515 times)

questorfla

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 499
  • Fighting Slime all the Time
    • View Profile
    • Donate to Member
This is a question i have often wondered if there is a proper way to manage.  Given that you have a folder with 20 or more sub-folders in it,each folder-name having no spaces:
When typing input into a query created using the "set /p" command is there a way to make the input field auto-fill the text to match the folder-names in the existing directory similar to how Outlook fills in the email address-field based on names in your contacts (or actually it now uses a special file for this purpose but the results are the same) . 
Each progressive key entered by the user would narrow down the displayed name until it either matched the name of a sub-folder that already existed or if not already there the script would proceed to ask "Create?  (Y)es  (N)o  with the default being NO.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,405
    • View Profile
    • Donate to Member
Re: Using the folder contents of a directory to auto fill an input window
« Reply #1 on: February 11, 2016, 08:09:45 PM »
From a purely DOS point of view ... unlikely.

Type in enough so that an entry is uniquely identifiable and then hit TAB and see if it auto-completes.

Otherwise, I suggest start using a simple PowerShell GUI with drop-down selector, for example.