Discussion Locked

User input in batch file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

while executing batch file , I would like to take user input.

Choice.exe gives me single character. I need to take string

ask.exe sets Environment variable which is not suitable for my requirement as batch file will be executed on different machines.

I would like to use dos commands and not using windows scripting.

Thanks

-Pramod

3 replies

by johnm

If you can find an old copy of the Jamsa Utilities (mine came on three 5.25" floppies in a book called DOS Batch File Power by Kris Jamsa, published by SAMS) the READSTR.COM utility will read a complete string under DOS.

This discussion is closed to new replies.