How to delete a file from time machine without entering time machine mode ?

10-11  Source: Network gathering  Views:0 

Advertisement
Is there  a terminial hack or a third-party app  to delete a backed up file from the finder and at the same time from time machine without having to enter time machine mode, and is there a shortcut to do so ?
Please post your code using code tags (click on CODE above the text area, when posting)
response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
        BufferedInputStream input = null;
        BufferedOutputStream output = null;
        try {
            // Open streams.
            input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
            output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
            // Write file contents to response.
            byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
            int length;
            while ((length = input.read(buffer)) > 0) {
                output.write(buffer, 0, length);
            // Finalize task.
            output.flush();
        } finally {
            // Gently close streams.
            close(output);
            close(input);
        }
Related articles
  • Anyone knows how to delete a file from a directory????? 10-11

    hi there anyone has any idea on how to delete a file from a directory? delete(String filename)? thank you.Hi, Check this link. Gives you an example code to show how to delete a file. http://examples.oreilly.com/jenut/Delete.java Hope this helps. Roop

  • How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why? 10-11

    How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?Sorry I had to reply through your profile Gail from Maine, my PC has java issues. In any event, when I delete them directly from my device

  • How to delete the files from iPhone before selling? 11-30

    How do I delete the files from my old iPhone4 before selling?Hey adhot, Before selling your iPhone, you'll want to follow these directions: Before you sell or give away your iOS device, make sure that you have removed all of your personal information

  • How to delete a file from application server? 10-11

    Hi gurus, i want delete a file from application server . can any one tell me the BAPI/Fm . thanks in advanceSee the replies of the thread; How to delete  File from the Application Server,ABAP But i can smell something fishy in both  The specified ite

  • How to delete a  file from AL11?????? 10-11

    Hi Friends, how can i delete a file from AL11 directory.... i have found FM's like EPS_DELETE_FILE, EDI_PORT_DELETE_FILE and some more from SAP system but those are not deleting the files.... let me know if i can write a program for this and if yes t

  • How to delete 1 file from CD? 10-11

    If I only want to delete one file from a cd that contains many files, how do I do this? I don't want to erase the whole cd!1. find 700 MB of free space somewhere, you have it i'm sure. if not back-up & delete old stuff... 2. copy the whole CD to ther

  • How to delete the files from server through OAF page 10-11

    Hi All, I have a requirement in which i am creating files on server through my CO code. Now once the page is rendered, i want to delete the files from the server. Just wondering how can we achieve this. Kindly advice! Thanks, SachinHi Sachin all the

  • How to delete a file from my hard drive through iTunes? 10-11

    I want to delete a file through my iTunes. Whenever I do, it just gives me a dialog window telling me that it will delete the file from the library and my iPod. It does NOT delete it from my hard drive. I do NOT want to let iTunes manage my music. Ho

  • How to delete a file from Appliction Server. 10-11

    Hi Gurus, I want to delete a file from application server . can any one tell me the FM/BAPI. Plz Reply me ASAP. Thanks in Advance.BAPI_DOCUMENT_DELETE ? GUI_DELETE_FILE ? maybe just go to SE37, enter DELETE, and click on the document icon to find fro

  • How to delete a file on web server without using FTP 10-11

    Hi All I hv given a facility to a site user to upload some files.. And an interface to web administrator to view all the files.. I want to know how can i write a code in JSP which allow the web administrator to delete any of that file which is not of

  • How to display a file from Application server without downloading it to local drive 10-11

    I want to dispaly a file from Application server without downloading it to my local system. i tried the below method but it didn't work.      CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE       EXPORTING         APPLICATION            = L_FILE       

  • How to delete a file from time machine without entering time machine mode ? 10-11

    Is there  a terminial hack or a third-party app  to delete a backed up file from the finder and at the same time from time machine without having to enter time machine mode, and is there a shortcut to do so ?Please post your code using code tags (cli

  • How to delete CR2 files from iPad 11-30

    I recently used the camera connection kit to download photos (JPEG and Raw) from my Canon G12 to my iPad.  Since I have gotten home, I have been transferring the photos to iPhoto on my MacBook Pro.  When I try to delete the photos from my iPad, it wi

  • How to delete a file from adobe reader on a Acer tablet 10-11

    I no longer require some pdc files in Adobe Reader.  How do I removeYou can delete files in either of the two ways: 1. Go to the documents tab in the File Browser -> long press on the pdf file that you want to delete - > delete the file 2. Go to the

  • How to delete photo files from ipad 11-30

    Now that I used the handy little card reader while on my last trip to download photos, my ipad is near capacity...urgh. How do I delete them? Is there a management system? Thanks!The links below have instructions for deleting photos. iOS and iPod: Sy

  • How to delete .inProgress file from the Time Machine? 10-11

    So my back up-ed had failed and I deleted it, and I can't empty the trash and when I try to put it back it doesn't want to. Help me please! Because now all of my space is used so I can't back up anymore. Thanks in advance!You never delete a Time Mach

  • How to delete other files(yellow color code) from the hard drive, how to delete other files from the hard drive 10-11

    how can i delete the yellow color code items from my hard drive? What are these other files anyway? I wanna save some memory space from my storage.Macbook Pro community is here Following thread could solve your question. https://discussions.apple.com

  • How to delete flv files from iPhone library 11-30

    Hi, I am a newbie to iOS and I am using factory unlocked iPhone 4s with iOS 7. I have added some flv files to library and synced them to iPhone using iTunes. But as iPhone doesn't support flv files so I can't see them in movies. They have claimed dis

  • How to delete a files from MNT using scripting in OSD 11-30

    Hi , I am looking a method for deleting a set of files present in virtual drive(MNT). Please let me know scripting methods that can achieve above things and i can add that in OSD FIle. Kindly advise Umeed4uHere's two basic options (this does not coun

  • How to delete music files from nokia 6760s 11-30

    Hi guys i had some music files in my memory card but i removed them it is like a copy of them remained n wen try to remove them they can't go...n they can't b played either! Pliz helpHi guys i had some music files in my memory card but i removed them