Bonjour
Je souhaiterai écrire des lignes de codes dans un fichier, sans mettre les "" en début et fin de ligne, car sinon dans mon fichier final, il apparaisse.
Si je ne les mets pas (""), alors par exemple l'interpreteur pense que par exemple le "send" ou le "&" sont des commandes.
en fichier final dans mon fichier swaitcat1, je voudrais ça :echo config type=com, mediacom=tcpip, fname='xhttp://120.10.150.220:1313' > C:\swaitcat1.txt
echo "send part=TOTO, idf=TEST, fname=C:\%1, nfname=&FROOT.&FSUF" >> C:\swaitcat1.txt
echo "swaitcat select='IDTU=="%_CAT_IDTU%"'" >> C:\swaitcat1.txt
config type=com, mediacom=tcpip, fname='xhttp://120.10.150.220:1313'
send part=TOTO, idf=TEST, fname=C:\%1, nfname=&FROOT.&FSUF
swaitcat select='IDTU=="%_CAT_IDTU%"'
et je me retrouve avec ça :
config type=com, mediacom=tcpip, fname='xhttp://150.10.31.100:1313'
"send part=TOTO, idf=TEST, fname=C:\tata.txt, nfname=&FROOT.&FSUF"
"swaitcat select='IDTU==""'"
merci pour votre aide
Partager