How do I force rebuilding/generation of files generated by an imagecache preset? I edited the actions on one of my imagecache presets, but it has only generated a few pictures (instead of hundreds) of pictures. 

I am using the preset to in a view to show thumbnails that belong to nodes of a specific content type with the help of a module called teaser thumbnail. All the thumbnails on the first page of the view have been generated correctly, but beyond that, none of the thumbnails have been generated.

I am using Drupal 6.25 with public file system on a shared hosting server.

So the main question is how do forcefully rebuild/re-generate the pictures associated with preset?

Edit : I have already used the 'Flush' function on the preset.
Imagecache images are generated on the fly when a browser requests them, rather than when you create the preset or flush the images.

Basically, this is how the process works.

When a URL 404s, the request gets punted to /index.php and handled by Drupal.

The imagecache module has a hook_menu() entry that handles all of the requests to sites/default/files/imagecache (or whatever file_directory_path() returns for your site).

The callback for this checks for the requested filename.  If the file exists (ie, the derivative has been generated and exists in the filesystem), it gets served up.  Otherwise, the module makes the derivative, saves it to the filesystem, and then serves it up.

So, the net result is that you don't need to explicitly generate the derivatives.  When a page that has them on it is requested, they will be automacically generated.

If you would like to pre-generete them for performance reasons, then my suggestion would be to write a bash script to find all of the images in your sites/default/files directory, and then wget them with the proper imagecache preset path name.

If you are looking at a page and the thumbnails aren't being shown, then you have another problem.  Checking the system report would be the first place to check.  Typically, the webserver can't write to the filesystem or your image toolkit is messed up.