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"
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.
[#Menu:GATEWAYOFTALLY] Add:ButtonELETEFILE [ButtonELETEFILE] Key:ALT+9 Title:"DELETE FILE" Action:Call:TDLTEAST [Function:TDLTEAST] Action:01elete File:"H:\PDF\PDFS" Action:02:Make Dir:"H:\PDF\PDFS" Thank you sir this code worked well for me