Jump to content

Recommended Posts

Posted

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
Posted

Using the AutoIt Window Info Tool, can you verify the window title, as well as the SysListView id? For instance, make sure it isn't something weird like SysListView322.

They're correct.
Posted

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
...
Posted

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?
Posted

Have a look at DirGetSize() in the helpfile .. :)

Oh...I thought that only got the file size, but now I see it can get more. That's better and shorter than my way. Thanks for the tip.

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
  • Recently Browsing   0 members

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