<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>polydegmon's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/339329/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user polydegmon.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 10:48:41 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Reading a file and searching for a string using a bat file</title>
      <link />
      <description>&lt;p&gt;Posted a 'new message on the MS-DOS forum.&lt;/p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I'm trying to read in from a file and find a certain string, once it's found i have to split it at the = and get the text to be used in a file name backup. The only thing i'm having trouble with is getting the correct string.&lt;br /&gt;
&lt;br /&gt;
This is the code i'm using&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
@ECHO OFF
FOR /F %%A IN (C:\TEST\lpcqparm.cfg) DO (

	@ECHO %%A:~0,9%	
	
	SET VAR=%%A
	@ECHO %VAR%

)

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The echo of the %%A variable won't let me split the string to compare it and on the following line when i put it into a variable the variable always contains the last line of the file.&lt;br /&gt;
&lt;br /&gt;
The input file contains the following info&lt;br /&gt;
&lt;br /&gt;
&amp;amp;DATE=20090807&lt;br /&gt;
&amp;amp;DATE2=08072009&lt;br /&gt;
D&amp;amp;CRDACYC=D0932E&lt;br /&gt;
D&amp;amp;PRDACYC=D0932D&lt;br /&gt;
W&amp;amp;CRWKCYC=W0932&lt;br /&gt;
M&amp;amp;CRMOCYC=M0908&lt;br /&gt;
Q&amp;amp;CRQTCYC=Q0903&lt;br /&gt;
END-OF-FILE&lt;br /&gt;
&lt;br /&gt;
Does anyone know how this could be done or why when i put the %%A into a varaible it always contains the last line of the file?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:31:03 -0700</pubDate>
    </item>
    <item>
      <title>Process Info - Characters not in code pages</title>
      <link />
      <description>&lt;p&gt;Posted a 'new message on the C and C++ forum.&lt;/p&gt;I'm trying to create a funtion, that can get all the system info from a given process id and return it to a variable.&lt;br /&gt;
&lt;br /&gt;
I invoke the base windows classes to get the neccessary info, by taking a snap shot and than using the process handle to get all the info needed. I pass the info back to the calling function using the LPWSTR datatype, into a string envVars = new StringBuilder(8192 * 2);&lt;br /&gt;
I then use the ToString method on the returned value to convert it for compares.&lt;br /&gt;
&lt;br /&gt;
The problem is that all of the info isn't in the string, when i open it in textpad it says that certain characters don't exist in the code page 1252, and it displays these as a '?'&lt;br /&gt;
&lt;br /&gt;
Does anyone have any ideas on how to solve this issue?&lt;br /&gt;</description>
      <pubDate>Fri, 22 May 2009 05:36:15 -0700</pubDate>
    </item>
  </channel>
</rss>