Batch program to process all files in folder

Focus enhancement Tview micro presenter...
August 9, 2009 at 01:59:07
Specs: Windows XP
I want to open all the .jpg files present in a folder
in paint application, and then exexute Ctrl + S on
each file (i.e. save with same name), and then
close the file. Pls help how can I write a batch
program for this.

See More: Batch program to process all files in folder

Report •

August 9, 2009 at 03:41:03
Why open and re-save? Same programs (ex. IRFANVIEW) can do it and do something to the file,

Report •

August 9, 2009 at 04:16:13
By opening and saving a file in paint, file size of jpeg files is
reduced by more than 60% and thus saves disk space. Also
there is no difference in quality, resolution and size of the pic. So
I do not want to use any s/w like picasa, etc which generally
reduces the picture resolution by a bit to reduce the size.

Can you suggest how to do it by batch program as I've too many
pics in folders, and also it will be good experience for me to learn
batch programming.

Report •

August 9, 2009 at 04:26:59
Automating gui programs through batch is fairly impractical, in fact most forms of automation of gui programs leaves much to be desired.

The main problem is to send input something along the lines of send keys is often used because the program was never designed to be automated. By far the biggest problem with a "send keys" style approach is unexpected windows/pop ups opening or user interference.

If you want to do this in batch get the utility nircmd and read the help file, particularly "sendkeys" and "win".

I can't think of a better approach, maybe someone else can...

I very much doubt that paint isn't affecting the quality unless it is adding some form of compression....

Report •

Related Solutions

Ask Question