Skip to main content
Question

Rename file extension using SystemCaller not working


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?

 

4 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • 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+49

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+18
  • Contributor
  • 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
 ren "$(output_folder)\*.wld" *.jgw

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

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings