Make the action just a save as to a lower compression rate. Make sure to check the "override action save" check box in the batch. ALSO make sure to duplicate your folder! Before actioning.
You forgot the central part of the Batch command—the Action. Batch itself cannot do anything but open a file, execute an Action on it, and save it.
So create an Action that will do whatever you want to do on a single image file. Then run the Batch command on a folder full of image files, and it will apply the Action to each file. In your case, the Action just has to resize the image (Image > Image Size). Do not record the File Open command in the Action, as Batch will perform the opening for you. So to create the Action, first open one image file manually, then start the recording the Action’s tasks.
Do include the Save As command and there, select the file format (JPEG) and the degree of compression (JPEG Quality). In the Batch dialog box, uncheck the "Override File Open Command" check box but have the "Override Save As Command" ticked. Make sure all your files are 8 bpc (bits per channel), or the Save As command will fail (because you cannot save 16 bpc files as JPEG). You may want to include a command in your Action that switches the mode to 8 bpc (it will do nothing if the image already is 8 bpc … but in order to be able to record that command you’d need to start out with a 16 bpc file).
— Olaf
I followed your advise and created an Action by opening a .jpg file is inside the folder with files to be rewritten (open was not recorded in such Action) , applied a Save as command (I chose quality 7 to reduce file size ) and finally Ctrl+W to close.
I checked if the mode is 8 bpc by opening Image>Mode>8 bits/channel and then on next step I opened the batch and called the previous recorded action , selected the source Folder and chose the same folder on which the files are , unchecked the Override Action Open Command ; then Override Action Save as command has been ticked , destination selected is Save and Close.
The Batch was run , I could see files open and close , but at the end of the operation no file has been reduced. Please , what´s amiss ? Thank you for your support. RW