Need help

Discussion in 'Free Source Codes' started by ANURAG954245, Mar 10, 2023.

    
  1. ANURAG954245

    ANURAG954245 Member


    how can we delete the contents of a file from tally

    tried this, code but is it deleteing the whole file
    i want to delete the contents of the file like photos ,pdfs etc
    Code:
    [#Menu:GATEWAYOFTALLY]
        Add:Button:DELETEFILE
       
    [Button:DELETEFILE]
        Key:ALT+9
        Title:"DELETE FILE"
        Action:Delete File:"H:\HTTPSERVER\DELEL"

    it is deleting the complte delel file but i want to delete the contents that is available in the file "delel"
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Obviously....delete will delete the file............

    Make a BLANK file in another folder......... and run the command to copy that BLANK file to a Occupied file.... this will only erase the content and the same file will be available in a BLANK form.
     
    ANURAG954245 likes this.


  3. ANURAG954245

    ANURAG954245 Member


    [#Menu:GATEWAYOFTALLY]
    Add:Button:DELETEFILE

    [Button:DELETEFILE]
    Key:ALT+9
    Title:"DELETE FILE"
    Action:Call:TDLTEAST

    [Function:TDLTEAST]
    Action:01:Delete File:"H:\PDF\PDFS"
    Action:02:Make Dir:"H:\PDF\PDFS"


    Thank you sir this code worked well for me
     
    Last edited: Mar 10, 2023


  4. Hems

    Hems Member


    Sir
    Delete ki tarah file rename bhi ho sakti hai ?
     


Share This Page