Is there anyway to have preset data for user input in a batch file?

前端 未结 8 1058
野趣味
野趣味 2020-12-06 19:52

So basically I have a batch file that requires alot of user input. I was wondering if it was possible to have any filler data already present when the question is asked, and

8条回答
  •  眼角桃花
    2020-12-06 20:31

    I wrote an open-source Windows console program called editenv that replaces my older editv32/editv64/readline.exe utilities:

    https://github.com/Bill-Stewart/editenv

    Basically, editenv lets you interactively edit the value of an environment variable. One of my common use cases is to edit the Path environment variable for the current process:

    editenv Path
    

    It also has some other handy options, such as masking the typed input[*], limiting the input length, allowing and disallowing entry of characters, etc.

    The most recent binaries are available here:

    https://github.com/Bill-Stewart/editenv/releases

    [*] The input masking feature is not secure and is provided for convenience only.

提交回复
热议问题