Change the file name run time

Discussion in 'Requests' started by Amit kumar-MCA, Nov 21, 2018.

    
  1. Amit kumar-MCA

    Amit kumar-MCA New Member


    Hi friends ,
    I have a file that name is "daybook.txt" . I want to change the name of that file like "daybook.detail" using a function call . Is it possible in tally ?

    Because according to my knowledge their is no any function or command like filerename or rename etc present in tally.
     


  2. Maulik Patel

    Maulik Patel Active Member


    You need to write your own function. In that function you can copy your existing file with your new name and then delete old file on successfully copy of old file.
     


  3. Amit kumar-MCA

    Amit kumar-MCA New Member


    we have need to change the extension.
     


  4. Maulik Patel

    Maulik Patel Active Member


    Have you tried the thing which I suggested? If you have written code then you must find that the function which is copying file is having some parameters
    You can do it while copying file to new one. Just go through that function
     


Share This Page