You may also use income header named CamelFileName which contains original file name.
In your case: .to(simple("exec:c:/python25/python.exe?args=c:/python25/stepIIS/stepIIS.py ${in.header.CamelFileName}.step -n -l 3")) -----Original Message----- From: Richard Kettelerij [mailto:richardkettele...@gmail.com] Sent: Thursday, December 30, 2010 5:42 PM To: users@camel.apache.org Subject: Re: camel file :getName of file Also don't forget to sign up to the mailing list, your message is currently only visible in Nabble. -- View this message in context: http://camel.465427.n5.nabble.com/camel-file-getName-of-file-tp3322455p33226 20.html Sent from the Camel - Users mailing list archive at Nabble.com.