Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the name of a file.

Former Member
0 Kudos

Hello, I don't how can I change the name of a file ?.

Somebody can help me, please?

For example : c:\out\prove1.csv to c:\out\prove1_09112007_163001.csv

Thanks

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Another way would be to use the FILE_COPY and

FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.

REgards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

One way would be to upload the file, and write it back with the new name, and then delete the old file.

REgards,

Rich Heilman

former_member194669
Active Contributor
0 Kudos

Hi,

use fm GUI_EXEC with CMD /C REN

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Another way would be to use the FILE_COPY and

FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.

REgards,

Rich Heilman