@echooff ifexistipconfigtxtdelipconfigtxt ipconfig/all>ipconfigtxt ifexistphyaddrtxtdelphyaddrtxt findPhysicalAddressipconfigtxt>phyaddrtxt for/fskip=tokens=%%Min(phyaddrtxt)dosetMac=%%M ifexistIPAddrtxtdelIPaddrtxt findIPAddressipconfigtxt>IPAddrtxt for/fskip=tokens=%%Iin(IPAddrtxt)dosetIP=%%I arps%IP%%Mac% delipaddrtxt delipconfigtxt delphyaddrtxt exit |