Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get user input in a batch (script) file? 1

Status
Not open for further replies.

vpshriyan

IS-IT--Management
Jul 26, 2002
356
IN
hi,

In a batch file I would like to get the input from the user. In Windows-98 for example following syntax works fine; but under Win-2000 it does not.

choice /c:yn "Are you sure ?"

Can anyone help me out? I would appreciate any suggestion.

Thanks.
Shriyan
 
PAndersen's tip looks good.
PS. Also - you could copy choice.com from win98 to 2k (it works in 2k on my machine).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top