va voir ici
dans la question "Est-il possible de faire un programme batch qui demande en cours d'exécution des instructions à l'utilisateur, comme par exemple l'instruction "input" du BASIC ?"
http://www.chez.com/scudo/Faq/dos/batches.htm#tech
ps : explication de copy con pri sur http://www.melbpc.org.au/pcupdate/ [...] ticle3.htm
:
COPY CON Filename.Ext
Will create a file named FILENAME.EXT in the current directory. You can put a complete filespec in if you wish.
Each time you press ENTER the cursor advances a line. Your Prompt has disappeared and (Horrors) you can't get back up to the line above. You can only edit the current line. If you are not confidently error free with you input you will soon find that three or four lines is all that you can stand.
When you have entered all the lines, you press ENTER so that the cursor is on a blank line and either press F6 or hold down the Ctrl key and tap Z, then press ENTER. Either way a ^Z (we were talking about that just before) is printed and then you get your prompt back.
Message édité par ayou42 le 10-10-2002 à 11:03:51