AutoHotkey Community

It is currently May 27th, 2012, 11:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 19th, 2010, 2:42 pm 
Offline

Joined: November 14th, 2007, 2:47 pm
Posts: 335
Location: London, England
Best way to go about counting the number of JPG's in a folder?

Would it be easy to extend the function to do various image types?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2010, 2:45 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Search is your friend. http://www.autohotkey.com/forum/topic60580.html (I believe there is a function somewhere on the forum too)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2010, 3:13 pm 
Offline

Joined: February 29th, 2008, 8:36 pm
Posts: 901
Location: Vault 7
Yep, there is a forum search too. For some reason, I still prefer it to using Google for this forum. I even have the search keyworded (I just type "ahk <search terms>" and the results appear).

While I'm here, I may as well suggest my FileContainer object:
Code:
f := FC("pattern","C:\folder-with-pics\*.jpg")
MsgBox % "There are " f.len() " jpegs in the folder:`n" f.toList("`n")


It's overkill for just counting, but if you want to actually do something with all those files after you count...

_________________
ImageDebugging,Container,FileContainer,Object Preferences,ShellFileOperation


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2010, 3:22 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Rapte_Of_Suzaku wrote:
Yep, there is a forum search too. For some reason, I still prefer it to using Google for this forum. I even have the search keyworded (I just type "ahk <search terms>" and the results appear).
The problem is that not all posts are indexed by Google (most are, but not all)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, Yahoo [Bot] and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group