Jump to content

File Count


Recommended Posts

I have this same function on another computer where the script works but when I try adding the script to another computer it won't recognize that the files are there. Any help is appreciated.

$filecount = ControlListView ( "C:\filecheck", "", "SysListView321", "GetItemCount") ;Check for new files
        If $filecount <= 0 Then ;If no new files exit program
            $filecheck = False  ;Set new files status to false
Link to comment
Share on other sites

Perhaps this would work better?

#include <File.au3>
$aFiles = _FileListToArray("C:\filecheck")
$filecount = $aFiles[0] ;Check for new files
If $filecount = 0 Then ;If no new files exit program
   $filecheck = False  ;Set new files status to false
...
Just tried that and it didn't work. Any other suggestions?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...