Question

Rename file extension using SystemCaller not working


Badge

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

Userlevel 2
Badge +19

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

 

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

Userlevel 5
Badge +25

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

Userlevel 2
Badge +16

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

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

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

 

Reply