User Tools

Site Tools


batchfiles

Differences

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

Link to this comparison view

batchfiles [2024/06/10 15:40] – created - external edit 127.0.0.1batchfiles [2026/04/16 20:50] (current) – [No spaces around assignment statements.] donald
Line 3: Line 3:
 ===== No spaces around assignment statements. ===== ===== No spaces around assignment statements. =====
  <code>set x=2 ok.</code> <code>set x = 2 will not work.</code>  <code>set x=2 ok.</code> <code>set x = 2 will not work.</code>
 +
 +===== Ping all ip addresses on home net =====
 + <code>REM use %% in a batch file
 +for /l %x in (1, 1, 255) do ping /n 2 192.168.12.%x >> ping.txt</code>
  
 ===== This batch file looks for x86 or x64 ===== ===== This batch file looks for x86 or x64 =====
batchfiles.1718034058.txt.gz · Last modified: 2024/06/10 15:40 by 127.0.0.1