I'm getting mad trying to get an editable input in a BAT script, similar to read -i in bash.
I saw all sort of workarounds but I found them too complicated or long or dependant of other files/non-native resources.
Is there any way to use powershell inside the bat in order to emulate an input with editable default string?
I found that this can be called from within a bat:
powershell -Command "$input = read-host 'Enter Input: '"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…