Counting with FSO

Results 1 to 2 of 2

Thread: Counting with FSO

  1. #1
    Join Date
    Dec 1969

    Default Counting with FSO

    &nbsp;<BR>Hello All,<BR><BR>I want to be able to count the number of files in a chosen folder.<BR><BR>What I want to do is have a folder full of JPG&#039;s, about 20, then a script count the number of files in the folder, then choose one ie: 12.jpg<BR><BR>the number of JPGs may vary over time, so to count them before randomising would be cool<BR><BR>thanks<BR><BR>pb

  2. #2
    Join Date
    Dec 1969

    Default RE: Counting with FSO

    No FSO! Look at the DirectoryInfo Class in the System.IO Namespace.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts