<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DOS batch procedure in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854449#M7469</link>
    <description>For this kind of jobs, as you are an HP-UX expert, probably you will find unxtools very usefull:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unxutils.sourceforge.net/" target="_blank"&gt;http://unxutils.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;They work very whell.</description>
    <pubDate>Thu, 31 Aug 2006 15:05:45 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2006-08-31T15:05:45Z</dc:date>
    <item>
      <title>DOS batch procedure</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854448#M7468</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I need help to script this in DOS batch syntax. First I need obtain any registry data entry into the root key HKEY_LOCAL_MACHINE where the string 2.34.1.32 is present:&lt;BR /&gt;&lt;BR /&gt;C:\&amp;gt;scanreg -s 2.34.1.32 -d lm|find "Data"&lt;BR /&gt;Data  : "2.13.0.20,2.12.0.20,2.34.1.32"&lt;BR /&gt;Data  : "2.34.1.32,2.34.1.54"&lt;BR /&gt;Data  : "2.34.1.32"&lt;BR /&gt;&lt;BR /&gt;So I need catch on-the-fly this output and extract second field separated by ":" and then execute to each string line the following command:&lt;BR /&gt;regfind &lt;SECOND_FIELD&gt; -r "2.13.0.20,2.12.0.20"&lt;BR /&gt;&lt;BR /&gt;In other words, the follwing executions will be done:&lt;BR /&gt;regedit "2.13.0.20,2.12.0.20,2.34.1.32" -r "2.13.0.20,2.12.0.20"&lt;BR /&gt;regedit "2.34.1.32,2.34.1.54" -r "2.13.0.20,2.12.0.20"&lt;BR /&gt;regedit "2.34.1.32" -r "2.13.0.20,2.12.0.20"&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/SECOND_FIELD&gt;</description>
      <pubDate>Thu, 31 Aug 2006 10:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854448#M7468</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2006-08-31T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: DOS batch procedure</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854449#M7469</link>
      <description>For this kind of jobs, as you are an HP-UX expert, probably you will find unxtools very usefull:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unxutils.sourceforge.net/" target="_blank"&gt;http://unxutils.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;They work very whell.</description>
      <pubDate>Thu, 31 Aug 2006 15:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854449#M7469</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-08-31T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: DOS batch procedure</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854450#M7470</link>
      <description>Hi Jose!&lt;BR /&gt;&lt;BR /&gt;I think it will be a good, one-line solution:&lt;BR /&gt;&lt;BR /&gt;reg_srch.bat&lt;BR /&gt;&lt;BR /&gt;@FOR /F "usebackq tokens=2* delims=:" %%a IN ('scanreg -s 2.34.1.32 -d lm|find "Data"') do regedit %%a -r "2.13.0.20,2.12.0.20"&lt;BR /&gt;&lt;BR /&gt;For searching any other strings, ie.:&lt;BR /&gt;&lt;BR /&gt;reg_srch "2.13.0.20,2.12.0.20" 2.34.1.32&lt;BR /&gt;&lt;BR /&gt;@FOR /F "usebackq tokens=2* delims=:" %%a IN ('scanreg -s %2 -d lm|find "Data"') do regedit %%a -r %1&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Sep 2006 18:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/dos-batch-procedure/m-p/3854450#M7470</guid>
      <dc:creator>Robert Gralak</dc:creator>
      <dc:date>2006-09-20T18:04:05Z</dc:date>
    </item>
  </channel>
</rss>

