Ms dos / menu ecrire dans un fichier

Profil bloqué -  
jeanbi Messages postés 15119 Date d'inscription   Statut Contributeur Dernière intervention   -
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 ?
A voir également:

1 réponse

jeanbi Messages postés 15119 Date d'inscription   Statut Contributeur Dernière intervention   2 184
 
bonjour,
ça existe encore !!
https://www.commentcamarche.net/faq/2695-ms-dos-ecrire-dans-un-fichier-texte-en-batch
a+

0