Ms dos / menu ecrire dans un fichier

Fermé
Profil bloqué - 13 mars 2010 à 18:04
jeanbi Messages postés 14755 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 - 13 mars 2010 à 19:39
Bonjour,

je vous explique , j'ai créer un menu sous msdos :

menu.bat
cls
@Echo off
:Menu
Echo 1 - Gestion Client
Echo 5 - Quitter



set /p Input=Votre choix :
If %Input%==1 gestion_client.bat
If %Input%==5 goto Sortie
Goto Menu
:Sortie

gestion_client.bat

@Echo off
:Menu
Echo 1 - nicolas
Echo 2 - antoine

Echo 5 - MENU



set /p Input=Votre choix :
If %Input%==1 type antoine.txt
If %Input%==2 type nicolas.txt
If %Input%==5 menu.bat


echo .
pause
cls
Goto Menu
:Sortie

le programme affiche le fichier texte mais je voudrais pouvoir ecrire dans ce fichier ?

pouvez vous m'aider ?

1 réponse

jeanbi Messages postés 14755 Date d'inscription samedi 9 décembre 2006 Statut Contributeur Dernière intervention 6 février 2023 2 388
13 mars 2010 à 19:39
bonjour,
ça existe encore !!
https://www.commentcamarche.net/faq/2695-ms-dos-ecrire-dans-un-fichier-texte-en-batch
a+

0