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

前端 未结 8 1073
野趣味
野趣味 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:39

    Another possibility is to use the editv32.exe or edit64.exe program (http://www.westmesatech.com/editv.html), which makes this very simple:

    set NAME=Gill Bates
    editv32 -p "Enter your name: " NAME
    

    editv32.exe/editv64.exe are unrestricted copyrighted freeware.

提交回复
热议问题