Marspidey Posted June 5, 2007 Posted June 5, 2007 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
lod3n Posted June 5, 2007 Posted June 5, 2007 "C:\filecheck" is the, full, correct title of the window you are reading? Including the case? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
Marspidey Posted June 5, 2007 Author Posted June 5, 2007 "C:\filecheck" is the, full, correct title of the window you are reading? Including the case?Yes, the title is correct.
lod3n Posted June 5, 2007 Posted June 5, 2007 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. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
Marspidey Posted June 5, 2007 Author Posted June 5, 2007 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.
GMK Posted June 5, 2007 Posted June 5, 2007 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 ...
Marspidey Posted June 5, 2007 Author Posted June 5, 2007 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?
lod3n Posted June 5, 2007 Posted June 5, 2007 How many files are in this C:\filecheck directory? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
GMK Posted June 5, 2007 Posted June 5, 2007 Just tried that and it didn't work. Any other suggestions?#include <File.au3> $aFiles = _FileListToArray("C:\filecheck") If Not IsArray($aFiles) Then ;If no new files exit program $filecheck = False ;Set new files status to false ...
Developers Jos Posted June 5, 2007 Developers Posted June 5, 2007 Have a look at DirGetSize() in the helpfile .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
GMK Posted June 5, 2007 Posted June 5, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now