View previous topic :: View next topic |
Author |
Message |
jemima
Joined: 02 Oct 2008 Posts: 2
|
Posted: Thu Oct 02, 2008 4:44 pm Post subject: Overwriting files when running from the command line |
|
|
Hi,
I have just been looking at your fantastic renaming tool and trying to get it to work for my setup, but have run into a problem.
My scenario is that I'm trying to create a batch file that will take a series of images and resize them (using a different tool) and then rename them appropriately (using your tool). Each image gets resized and renamed several times as we use the images in lots of different ways. The images are also sometimes updated so I need the renaming to overwrite files if they already exist (or, if a backup is created, create a backup from the old version rather than the new version).
I have created a configuration which does the renaming I require, and have checked the option 'overwrite destination files during pathbuilder renaming' and unchecked auto resolve name duplication. I have then saved this configuration and am referencing it in my batch file. However, when I run the command from the batch file it does not overwrite the old versions of the files. Is it possible to do this?
Many thanks,
Jemima |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Thu Oct 02, 2008 4:47 pm Post subject: |
|
|
Yes - what you are trying to do should work. Sounds like you confirmed that overwrites worked using the GUI; if not then let me know.
Did you specify a log file when you used the command line? If not, would you please do so and send me the file.
Also please send me a copy of the PFrank 'Config' file (the one you specified on the command line) and the PFrank.log file (should be in your application data folder ... if on XP).
Once I have the files, I can investigate the problem.
Thanks,
Peter. |
|
Back to top |
|
 |
jemima
Joined: 02 Oct 2008 Posts: 2
|
Posted: Fri Oct 03, 2008 10:17 am Post subject: |
|
|
Thanks for your help. I had not realised that it was necessary to set a separate path for the files to write to if I wanted them to overwrite existing files. That makes sense now and it's all working fine. In case someone else makes the same mistake, the way to do this is to set a new path for the files, as well as a new filename. The tool will then overwrite any identically named files in the other folder as long as the setting to overwrite is selected in the options. This works from command line as well as from the GUI. |
|
Back to top |
|
 |
|