User Tools

Site Tools


informatique:windows:batch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
informatique:windows:batch [2022/08/01 09:23] yahikoinformatique:windows:batch [2022/08/01 09:38] – Ajout IP depuis PING yahiko
Line 242: Line 242:
  
 http://brisray.com/computers/batch-volume.htm http://brisray.com/computers/batch-volume.htm
 +
 +==== Récupérer une IP depuis un ping ====
 +Source : [[https://stackoverflow.com/questions/9171774/batch-file-getting-ip-from-ping-command]]
 +<codedoc code:batch>
 +FOR /f "tokens=1,3 delims=: " %%A IN ('ping -n 1 fr.wikipedia.org') DO IF %%A==Réponse SET IP=%%B
 +ECHO %IP%
 +</codedoc>
informatique/windows/batch.txt · Last modified: 2023/09/14 08:46 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki