English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

im making a batch file and wondering how do i ask the user if he\she wants to proceed so it displays this message
do you want to proceed yes (y) / no (n)
or thereabouts and if you did press n it would exit and yes continues running the batch file

2006-10-09 18:18:49 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

what lines would i hav to enter

2006-10-09 18:19:30 · update #1

what sortov file soud i make then?

2006-10-09 18:21:27 · update #2

what line?????????

2006-10-09 21:11:41 · update #3

3 answers

Anything is possible if you get creative. Let me ask you something. What would happen if you had a batch file named y.bat and a batch file named n.bat?

you would type 'y' or 'n' at the dos prompt to execut it right? So, if you exited your first program and echo "do you want to proceed yes(y)/no (n)" and if that person wanted to proceed, and pressed y, then it would just execute the y.bat program.

2006-10-09 18:54:18 · answer #1 · answered by thepinky 3 · 0 0

tht isnt possible in a batch file

2006-10-09 18:20:50 · answer #2 · answered by Talha R 2 · 0 0

Ratchetr is sturdy: echo hi > attempt.txt "hi" is the content fabric of the document "attempt.txt" is the region of the document use a single > to create your document or 2 >> to characteristic contents on your document echo international >> attempt.txt

2016-12-26 14:52:39 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers