My Oracle Support Banner

Renaming a file with timestamp as part of the new filename. (Doc ID 1027720.1)

Last updated on APRIL 01, 2016

Applies to:

Sun e*Gate - Version 4.1.2 and later
Microsoft Windows (32-bit)
Microsoft Windows (32-bit)
***Checked for relevance on 12-November-2013***


Need to rename a file:
(file-rename '\home\user1\output.dat' '\home\user1\mytestdata.dat')
During execution of file-rename function I need to insert a current time (year, month and day) in the mytestdata.dat file name. How can this be done?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.