Hi Aamir,
You can try with an OS command, check also this thread: Need Help on Dynamic File Name | SCN
I already tried with DynamicConfigurationBean but this doesn't work for me
Could you share the exception and your configuration?, we will can help you better.
Regards.