<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Get progress from scanning' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Get progress from scanning' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 08:34:53 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 08:34:53 -0800</lastBuildDate>
    <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>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409087/get-progress-from-scanning/</link>
      <description>I am trying to make simple malware removal, but I dont know how to get the percentage of path that I want to scan. For example I scan c:\folder, I want to get the percentage to make progress bar while scanning.&lt;br /&gt;
&lt;br /&gt;
Thx a lot.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409087/get-progress-from-scanning/</guid>
      <pubDate>Wed, 11 Nov 2009 06:14:59 -0800</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409268/re-get-progress-from-scanning/#409268</link>
      <description>Let be &lt;strong&gt;m&lt;/strong&gt; the total number of files in a folder, &lt;strong&gt;n&lt;/strong&gt; the current file you process (a nonzero number) then current percentage (&lt;strong&gt;cp&lt;/strong&gt;) would be: &lt;strong&gt;cp:=n*100/m&lt;/strong&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409268/re-get-progress-from-scanning/#409268</guid>
      <pubDate>Fri, 13 Nov 2009 20:20:36 -0800</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409322/re-get-progress-from-scanning/#409322</link>
      <description>How can I get m ? Do I have to scan twice? :(&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409322/re-get-progress-from-scanning/#409322</guid>
      <pubDate>Sun, 15 Nov 2009 09:34:48 -0800</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409337/re-get-progress-from-scanning/#409337</link>
      <description>: How can I get m ? Do I have to scan twice? :( &lt;br /&gt;
&lt;br /&gt;
No, you have to use the &lt;strong&gt;findfirst&lt;/strong&gt; and &lt;strong&gt;findnext&lt;/strong&gt; procedures from the &lt;strong&gt;Dos&lt;/strong&gt; unit to get all the filenames in a folder first. That gives you the &lt;strong&gt;m&lt;/strong&gt;. When you scan you'll have to open each file for scan, starting from 1 (&lt;strong&gt;n&lt;/strong&gt;).&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409337/re-get-progress-from-scanning/#409337</guid>
      <pubDate>Sun, 15 Nov 2009 21:50:58 -0800</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409593/re-get-progress-from-scanning/#409593</link>
      <description>If I use findfirst or findnext, that will wasting time???&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409593/re-get-progress-from-scanning/#409593</guid>
      <pubDate>Thu, 19 Nov 2009 06:01:24 -0800</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409647/re-get-progress-from-scanning/#409647</link>
      <description>: If I use findfirst or findnext, that will wasting time???&lt;br /&gt;
&lt;br /&gt;
No time wasting there (takes only a fraction of a second), beside that's the only way to find out the file names from a folder...unless you read the FAT directly and process the info but that's a bit beyond plain Pascal's capability, you'd have to rely on assembly there...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409647/re-get-progress-from-scanning/#409647</guid>
      <pubDate>Fri, 20 Nov 2009 08:43:43 -0800</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>
