Show total bytes deleted?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Solmos
    New Member
    • Aug 2006
    • 355

    Show total bytes deleted?

    like doing so that it shows the total to me of eliminated bytes,

    for example:

    eliminated all the archives of the folder temp:

    File.Delete(_TempFolder.."\\*", false, false, true, nil);

    now like podria to be made so that it shows to me a message with I number total of eliminated bytes?

    thanks
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5478

    #2
    look into "file.getsize" and/or check this post dremot helped me get the file sizes from a list file, http://www.indigorose.com/forums/showthread.php?t=18550
    Embrace change in your life, you never know, it could all work out for the best

    Comment

    • TJ_Tigger
      Indigo Rose Customer
      • Sep 2002
      • 3159

      #3
      You can also read the help file for this function and build a CallBackFunction for you action that will track or show the Delete process.
      TJ-Tigger
      "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
      "Draco dormiens nunquam titillandus."
      Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

      Comment

      • Solmos
        New Member
        • Aug 2006
        • 355

        #4
        if, I have read the aid on file.delete callbackfuntion, but it is that not like doing scrip so that it shows the total to me of eliminated bytes aid please


        Code:
        CallbackFunction
        (function) The name of a function that will be called whenever progress is made in the delete operation. (You can use this callback function to display the progress of the delete operation in your own custom way.)
        
        Note: If CallbackFunction is set to nil, then the progress information will be sent to the built-in status dialog, assuming it is currently visible. (You can show or hide the status dialog with a StatusDlg.Show or StatusDlg.Hide action.)
        
        The callback function must be able to receive the following parameters:
        
        Source
        (string) The source path of the file being deleted.
        
        Deleted
        (number) The number of bytes deleted so far.
        
        Total
        (number) The total bytes that will be deleted.
        
        The callback function should return a boolean value (true or false) indicating whether the delete operation should continue:
        
        VALUE
         DESCRIPTION
         
        true
         Continue with the delete operation.
         
        false
         Stop the delete operation as soon as possible.

        Comment

        • Solmos
          New Member
          • Aug 2006
          • 355

          #5
          Please help!!!

          One example please!!!!!!!!!!

          Comment

          • bule
            Indigo Rose Customer
            • May 2005
            • 1116

            #6
            Well 'delete' is not scrapping the file byte by byte when deleting it... it merely removes it's reference in the file allocation table, AFAIK.
            Never know what life is gonna throw at you. ZubTech

            Comment

            • RizlaUK
              Indigo Rose Customer
              • May 2006
              • 5478

              #7
              use Dermot's xfoldersize dll to get the size of the temp folder b4 you delete the contents
              Embrace change in your life, you never know, it could all work out for the best

              Comment

              Working...
              X