Exemple:Comment exécuter la commande en utilisant la sortie d'une autre commande sous DOS?
for /? | if (this stream has word "the" in it) {echo the line with "the"}
Je dois en quelque sorte d'analyser le texte dans le flux redirigé.
Exemple:Comment exécuter la commande en utilisant la sortie d'une autre commande sous DOS?
for /? | if (this stream has word "the" in it) {echo the line with "the"}
Je dois en quelque sorte d'analyser le texte dans le flux redirigé.
Utiliser des tuyaux, en utilisant la barre verticale, "|".
Pour l'exemple:
redirigez la sortie de pour en trouver:
for /? | find "the"
premières lignes de la sortie:
command Specifies the command to carry out for each file.
Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead
If Command Extensions are enabled, the following additional
forms of the FOR command are supported:
If set contains wildcards, then specifies to match against directory
http://www.febooti.com/products/command-line-email/batch-files/ms-dos-command-redirection.html
Ce site a de bonnes informations sur les différents types de tuyauterie peut faire votre sous DOS.