That does work. I don't like it, but it works (I need to distribute this batch file, but this might work OK).
Dave From: Ken Cornetet [mailto:[email protected]] Sent: Thursday, June 07, 2012 9:52 AM To: NT System Admin Issues Subject: RE: Is there a way... What about for /f "tokens=1-5 " %%d in ('%LOGONSERVER%\NETLOGON\FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g From: David Lum [mailto:[email protected]]<mailto:[mailto:[email protected]]> Sent: Thursday, June 07, 2012 12:22 PM To: NT System Admin Issues Subject: RE: Is there a way... I need to figure out a way to make this work? FILEVER.EXE is in \NETLOGON. If I map a drive it works (B: = \\DC\netlogon<file:///\\DC\netlogon>) for /f "tokens=1-5 " %%d in ('B:\FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g If I try and use the %0\..\ trick it does not for /f "tokens=1-5 " %%d in ('%0\..\FILEVER "%SystemRoot%\system32\Macromed\Flash\Flash*.ocx" /A /D') do set FLASHVER=%%g David Lum Systems Engineer // NWEATM Office 503.548.5229 // Cell (voice/text) 503.267.9764 ~ 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]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ 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]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ 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
