Skip to main content
Question

Rename file extension using SystemCaller not working

  • June 26, 2019
  • 4 replies
  • 83 views

Forum|alt.badge.img

I'm trying to rename .wld files to .jpw after an image has been processed but the following dos command is not working. Any idea?

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • June 26, 2019

Have you tried ren "$(output_folder)" *.wld *.jgw?

 

Also, check if the command works all right outside FME.


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • June 26, 2019

There should be a \ between the last part of the output folder and the *.wld, so this should work:

ren $(output_folder)\*.wld *.jgw

Also, if there's spaces in the pathname, you might need to wrap that parameter and the \*.wld in " marks


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • June 26, 2019

Looks like there is a space between the output folder and the file name. That should be one continuous path without spaces. If the path contains spaces, use quotes as mentioned by @oscard


Forum|alt.badge.img
  • Author
  • 4 replies
  • June 26, 2019
 ren "$(output_folder)\*.wld" *.jgw

Fixed it with the above. You've all been helpful, thanks!