Page 1 of 1

command line and folder

Posted: Mon Nov 15, 2021 2:24 pm
by leof
Hi,
Im using command line to make .bat executables and i have some question.
In this example I want to use relative direction (photos) and not absolutes as c:\photos.

resize.exe "c:\photos" /profile=original /format=bmp /run

How can i do it?

Thanks

Leonardo

Re: command line and folder

Posted: Mon Nov 15, 2021 7:00 pm
by Phil
Hi Leonardo,

please try using "photos\*.jpg" or even "photos\*.*", depending on your file types.

Re: command line and folder

Posted: Thu Nov 18, 2021 12:59 pm
by leof
Hi Phil,
Thanks for your time.
I try both but it didn't work.
This is the command line i used:
"C:\...\ObviousIdea\Image Resizer 4\resize.exe" "photos\*.*" /profile=leo1 /run
The program starts but it open this message:
"Please add images to be processed"
Even im thinking that i can run the command line in the same directory I have the photos. But I dont know how to call the photos in this case too.
If you have any suggestion please tell me.
Thanks again

Re: command line and folder

Posted: Thu Nov 18, 2021 3:56 pm
by Phil
Oh, you are still using Light Image Resizer 4? Sorry, I suppose this old version does not support relative paths like newer ones do.

Re: command line and folder

Posted: Thu Nov 18, 2021 4:39 pm
by leof
Dear Phil,
It works great now. I downloaded a newer version.
I use:
"C:\...\ObviousIdea\Light Image Resizer 5\resize.exe" "*." /profile=leo1 /run
Then I put a .bat file into the same folder that i have the photos.
It works very well.
Best regards
Leonardo