Skip to Content
author's profile photo Former Member
Former Member

Rename a file

I need to rename a file. Seems to me that i should be able to use CL_GUI_FRONTEND_SERVICES method execute, but i cannot get it to work.

any ideas?

Regards,

Espen Leknes

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Oct 14, 2005 at 12:05 PM

    Hi,

    on appl.server use this link:

    how-to-move-a-file-from-one-folder-to-another-usin

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2005 at 12:04 PM

    Hi,

    on pc try that:

     CONCATENATE 'rename' FILE_old FILE_new
                   into  I_COMMAND-txt  SEPARATED BY SPACE.
    
      APPEND I_COMMAND.
    
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                FILENAME = 'c:ren.bat'
           TABLES
                DATA_TAB = I_COMMAND.
    
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                PROGRAM = 'c:ren.bat'.
           IMPORTING
                RBUFF   = RBUFF.

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 11:52 AM

    Where is the file stored? (app server / pres server) Which release?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 12:09 PM

    THe client is on a 6.20 system, with GUI version the same.

    The files will stored on the client, or a network drive accessible from the client.

    Message was edited by: Espen Leknes

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 08:01 AM

    found the solution via various sources.

    The clue is to use GUI_EXEC with

    CMD /C REN <oldname> <newname>

    thanks for your effort, which led me to the solution.

    espen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.