<?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: Get Count of Files from a folder in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80414#M32142</link>
    <description>Hi Hemalatha,&lt;BR /&gt;&lt;BR /&gt;I have found following Asset from DX which consists of Get Files/ Folders count action, may be you can use the VBO or you can copy the code and use it in your process.&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Apr 2021 04:54:00 GMT</pubDate>
    <dc:creator>vinodchinthakin</dc:creator>
    <dc:date>2021-04-14T04:54:00Z</dc:date>
    <item>
      <title>Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80409#M32137</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do anyone have the code stage that have been already developed for getting the count of files (shared folder) or else can you suggest me what would be the best way to do?&lt;BR /&gt;&lt;BR /&gt;1. We can use get files action and get number of rows from collection but the count of files in a folder will be more...I suspect there can be a possibility that it would throw memory exception.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hemalatha Polasani&lt;BR /&gt;Application Developer-RPA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2021 10:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80409#M32137</guid>
      <dc:creator>HemalathaPolasa</dc:creator>
      <dc:date>2021-04-09T10:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80410#M32138</link>
      <description>Hi Hemalatha,&lt;BR /&gt;&lt;BR /&gt;This is a little outside the box and I haven't tried it personally, but can you open the shared folder in Windows Explorer, then spy/read/parse the element in the lower left corner which displays the item count for the folder?&amp;nbsp; Assuming all you need is a file count and there are no sub folders in the shared folder to falsely increase the value, this should give you the information you need.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2021 12:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80410#M32138</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-04-09T12:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80411#M32139</link>
      <description>Hi Hemalatha,&lt;BR /&gt;&lt;BR /&gt;How many files are you dealing with?&lt;BR /&gt;&lt;BR /&gt;Personally I would say using the get files action and use collection count is the way to go.&lt;BR /&gt;Don't care about memory. I think opening the folder in the file explorer will consume more memory as using the action.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tobias Arnold&lt;BR /&gt;RPA Developer&lt;BR /&gt;ITERGO GmbH&lt;BR /&gt;Europe/Duesseldorf&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80411#M32139</guid>
      <dc:creator>TobiasArnold</dc:creator>
      <dc:date>2021-04-09T13:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80412#M32140</link>
      <description>Hi Hemalatha,&lt;BR /&gt;&lt;BR /&gt;You can create a copy of the existing Get Files action in the Utility - File Management Object and modify it to only return the count of the files in a given folder. If you are dealing with a very large number of files (10,000+ files), then returning a DataTable to a Blue Prism collection just to count it afterwards could be slow.&lt;BR /&gt;&lt;BR /&gt;Here's a stripped down version that will count the files in a folder with a single search string (my VB.net is a little rusty):&lt;BR /&gt;&lt;BR /&gt;Dim aFiles As FileInfo()&lt;BR /&gt;Dim aPattern As String&lt;BR /&gt;Dim oDirectory As New DirectoryInfo(Folder)&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;aPattern = Patterns_CSV.replace("?", ",")&lt;BR /&gt;aFiles = oDirectory.GetFiles(aPattern.Trim)&lt;BR /&gt;fileCount = aFiles.Length&lt;BR /&gt;&lt;BR /&gt;Success = True&lt;BR /&gt;Message = ""&lt;BR /&gt;&lt;BR /&gt;Catch e As Exception&lt;BR /&gt;Success = False&lt;BR /&gt;Message = e.Message&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nick&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nick LeGuerrier&lt;BR /&gt;Senior RPA Developer&lt;BR /&gt;MD Financial Management&lt;BR /&gt;Ottawa&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80412#M32140</guid>
      <dc:creator>NickLeGuerrier</dc:creator>
      <dc:date>2021-04-09T13:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80413#M32141</link>
      <description>Thank you for the code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I have used Get Files action, I got to know there won't be more than 1000 files.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hemalatha Polasani&lt;BR /&gt;Application Developer - RPA&lt;BR /&gt;IBM&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80413#M32141</guid>
      <dc:creator>HemalathaPolasa</dc:creator>
      <dc:date>2021-04-12T14:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80414#M32142</link>
      <description>Hi Hemalatha,&lt;BR /&gt;&lt;BR /&gt;I have found following Asset from DX which consists of Get Files/ Folders count action, may be you can use the VBO or you can copy the code and use it in your process.&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2021 04:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80414#M32142</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2021-04-14T04:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80415#M32143</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;
&lt;P&gt;Greetings for the day!&lt;BR /&gt;&lt;BR /&gt;Even this code is giving the count by considering the temp files in the target folder. I mean if we have "2" proper files in a folder and "3" temp files in it. We expect the count to be "2" but the code is giving us the count as "5". So any suggestion on how to resolve this?&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;MANIKANTA PITCHAIAH KAPALAVAI&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80415#M32143</guid>
      <dc:creator>MANIKANTA1501</dc:creator>
      <dc:date>2022-01-27T14:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Count of Files from a folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80416#M32144</link>
      <description>Hi M,&lt;BR /&gt;&lt;BR /&gt;Just stick to the simplest thing there is: get a list of the files in a collection, filter out what you don't want to have (temp files) and count the number of rows left in your collection. All of this can be done by the standard out of the box BP actions. Anything else sounds like overkill to me.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jan 2022 07:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Count-of-Files-from-a-folder/m-p/80416#M32144</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-01-28T07:48:00Z</dc:date>
    </item>
  </channel>
</rss>

