On 24 May 2012 at 21:08, David Lum wrote: > In batch to take this output: > --- > W32i DLL ENU 11.2.202.235 shp flash32_11_2_202_235.ocx > Reply from 4.2.2.3: bytes=32 time=24ms TTL=53 > --- > And end up with this in a .TXT file? > --- > 11.2.202.235 , 24ms > --- > I'm wondering if a FOR loop can be leveraged?
Is the 4.2.2.3 hard-coded or is that the IP of the system being checked? FWIW on XP the FOR syntax Scott C. provided to scavenge the OCX version didn't work. The following syntax works on XP from the command-line to collect the version number: for /f "tokens=1-5 usebackq" %i in (`filever "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx"`) do set FLashV=%m -- Angus Scott-Fleming GeoApps, Tucson, Arizona 1-520-290-5038 Security Blog: http://geoapps.com/ ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
