Customizing destination folder and file name - RealWorld forums

Log-in or register.

Customizing destination folder and file name

can't get it to work!
Anonymous
on October 19th 2009

This is a great little App and does every thing I want - if only I could get the destination folder and filename to work!

I am trying to resize everything from one folder structure to another folder structure.

Here is my batch file:
PhotoResize800RHSM.exe F:\Test "-cF:\Test800\<PATH><NAME>.jpg"

I am trying to resize everything in the F:\Test folder and all it's subfolders to the F:\Test800 folder (and create the same subfolders)

I have copied your example exactly, but it always puts the files in the same folder as the source...

Help?

Vlasta
on October 19th 2009

change it to: PhotoResize800RHSM.exe "-cF:\Test800\<PATH><NAME>.jpg" F:\Test

parameters are processed from left to right

TheObo
on October 20th 2009

thanks a lot - works like a dream!

utu
on November 7th 2009

I, sorry for reopening this thread, but I've just downloaded this useful program and I'm having similar problem.

I use a desktop shortcut and I've tried to set an output folder following your instruction and writing "C:\resized" in "From:", but that doesn't work.

Can you help me?

Thanks for your attention.

chaeskey
on December 26th 2009

Great work, man! This thing is a real time-saver!

Took me a while to find out how exactly the -c option works, though: I thought that the <PATH> is simply ignored as it never appeared in my target folder system. Maybe it's worth pointing out the following:

When using the -r (recursive directory) option, the <PATH> is only THAT part of the images' filepath that you enter as source. (Maybe I also had a wrong idea what the <ROOT> is.) So, when you have a folder structure like

D:\
  MyImages
    England
    France
    Italy

and you use

PhotoResize.exe -w800 "-cM:\<PATH><NAME>.jpg" "D:\MyImages"

then your target file system structure will be

M:\
  England
  France
  Italy

Unless I'm wrong. ;-)

Vlasta
on December 26th 2009

Yes, that is correct. <ROOT> is the entered path and <PATH> is relative path from ROOT to the currently processed file.

Anonymous
on January 25th 2012

I use:

PhotoResize_1600RSQ90.exe "-cC:\MYFOLD\<PATH><NAME>.jpg" E:\MYFOLD

to resize images from my mobile HD. Program builds folder structure on drive C: such as on source well. But I hoped, the files not processed because of options (with short size less then 1600) will achieve a destination too. It is not. The program don't make a copy of file if there were no processing. I think it is wrong.

Anonymous
on March 30th 2012

Good day! PhotoResize is a great tool, but I also have some problem...
What is the right way to write in command line if I want to resize one single file named Image.jpg and save to another folder?

Vlasta
on March 30th 2012

one possibility is:

PhotoResize400.exe "-cC:\resized\image.jpg" "C:\source_folder\image.jpg"
Anonymous
on January 28th 2013

hi
i have problem. i use Resize picture by adding to contex menu evrything is great except that i cannot do one thing:
- when i choose folder (<source folder>) with photos (<photos>) by left click using context menu the result folder i want to look like this - /<destination folder>/<source folder>/<photos>

my exemple i put by "add to context menu":

-R -M "-cD:\destination folder\<PATH><NAME>.jpg"
i click for ex. folder named "test" and i watn the result:
D:\destination folder\test\<NAME>.jpg

i give up right now - dont know what to do
help please
Michal

Anonymous
on November 14th 2013

I was looking for a way to put re-sized photos into a sub folder of the containing folder. By using the add to context menu option after executing the PhotoResize400.exe. I was able to achieve this and not have to use the command prompt.
In the additional options text box i put in -c<ROOT><Resize>\<NAME>.jpg so all the processed pictures to into a folder called Resize.

My current setup is -p100 -m -o -v -e -c<ROOT><Resize>\<NAME>.jpg
as all a want to do is reduce the file size but maintain all the metadata, creation dates, rotate and move it to a sub folder within the folder it is in.

Anonymous
on December 13th 2013

I am using PhotoResize in a small CMS app written in C#. It works perfectly and I am over the moon with the performance of the program, but I cannot get rid of the DOS box that briefly appears when I execute a resize. I am using the -o switch, but perhaps there is something else?


8 replies were left out.

Anonymous
on January 18th 2014

I think, this is what you want to see.
PhotoResize.exe -r "-cE:\Bilder-K500\<PATH><NAME>.jpg" "E:\Bilder"
Recursive is running fine; any picture is resized but too much. It comes with 400 pixel (<20kB)

PhotoResizeK500.exe -r "-cE:\Bilder-K500\<PATH><NAME>.jpg" "E:\Bilder"
Same result than this earlier tested one.
PhotoResizeK500R.exe "-cE:\Bilder-K500\<PATH><NAME>.jpg" "E:\Bilder"
Not even the photos on E:\Bilder where processed. Recursive is running, but any picture is skipped or Error.

Vlasta
on January 19th 2014

I did a couple of tests and so far I cannot replicate the error. I assume the pictures you are processing are quite large since you are resizing them to 500kB. Is that the case? I can imagine a scenario where the tool can run out of memory if you have a i7 processor with 8 threads running in parallel. Please try the 64-bit edition of the tool if this seems likely.

Anonymous
on January 19th 2014

Thanks for the tests you have performed. If it worked on your machine, it will work also on my system. I have tested the 64 bit version, without success. My photos are not big, around 8 megapixel (4 MB).
But I just discovered that PhotoResize is not able to create the sub folder structure. If I create them on forehand, it worked proper and all photos are resized. I checked the rights on the hard disc but it themes to be O.K. I am owner and have full access. I can create subfolder by hand and it’s me hoe is running the batch program.
I also give the used PhotoResize.exe the admin permission.
Is PhotoResize able to create the subdirectory tree under the target folder?

Vlasta
on January 19th 2014

Now I have it. It was the combination of resizing to kB and not having the folder structure ready. Please try re-downloading the tool - I hope it will work now.

Anonymous
on January 19th 2014

Thanks, very close now.
Tested:
PhotoResizeK500R.exe "-cE:\Bilder-K500\<PATH><NAME>-K500.jpg" "E:\Bilder"
PhotoResizeK500.exe -r "-cE:\Bilder-K500\<PATH><NAME>-K500.jpg" "E:\Bilder"
Both are running. Substructure automatically created even "Bilder-K500" is created, but constantly skipping photos smaller than 500kB, as the parameter "s" should do. Could you please look at that?

Vlasta
on January 19th 2014

This is kind of by design. But I guess I could change it, it should not cause unexpected problems.

Anonymous
on January 19th 2014

sounds good. Thanks.

Anonymous
on January 22nd 2014

I was waiting for your, but today I simply tested the actual available download. It runs without skipping the smaller files anymore. Thanks for fixing it and thanks for the fast and effective support. Have a nice day, Detlef

Anonymous
on February 16th 2014

Hello,

So I've been trying to find a way to resize and rename images and I found this App. Now I got it to resize the file and create them in a different directory with the subfolder structure. what I need to do now is make it append a few characters to the front of the filename. A example of what I mean would be: Original name: ST_0001 and what I want it to be renamed to would be like: p_ST_0001

This the code I'm using in a window command script

"C:\SHARE\PhotoResize200x134RUE.exe" "-cC:\share\ST_TEST\<PATH><NAME>.jpg" "C:\share\ST 2013"

Any help is apprecieated

Vlasta
on February 16th 2014

"C:\SHARE\PhotoResize200x134RUE.exe" "-cC:\share\ST_TEST\<PATH>p_<NAME>.jpg" "C:\share\ST 2013"

Anonymous
on February 17th 2014

it works great. I'll keep working on it. thanks again

Anonymous
on January 30th 2015

Hello,

please what code is, when i want resize files from different folders to one of my desktop.
If i click on some file and show up context menu and i click resize, i need this file with new size in folder on my desktop. sorry for my bad english. thank you

Page views: 10058       Posts: 32      
I wish there were...
What about ICL files?
Vista & Win 7 icons