D delete encrypted file after zipping done.

Hi,
i m developing backup project in which transffer doen through RMI
and first we encrypt files and then zip it and send over network to server;
Now what i have faced, is when zip is done , i can delete file inside local machine called (*.enc) files (encrypted files) which is directly stores at server, not at client side.
but i cant delete file to be chosen as backup file.
e.g. if i select abc.doc file as backup
it will first encrypt to (abc.doc.enc) then zip it
now i want to delete it from local machine abc.doc.enc.
what the code...
it wll delete original source file....... thts danger..
Thanks
give me solution
ghanshyam

In short: you can't delete a file.
Did you close all accessing streams before deleting? Has something else a lock on the file?

Similar Messages

  • How to delete log file after zipping in batch

        
        **please check my code ... and suggest any changes to be made ... i m able to zipp the logs but not able to delete those logs.........
            thanking you...
            this is my code....
            @echo off
            set zip="C:\Program Files\7-Zip\7z.exe"
            rem Findout Month, Year and Date
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set year=%%D
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set month=%%B
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set day=%%C
            rem Solve problem Year start and adding 0 in month
            if %month% EQU 01 (
            set month=12
            set /a year=%year%-1
            ) else (
            set /a month=%month%-1
            if %month% LSS 10 set month=0%month%
            rem Set file names for last month file.
            set lastmonthfiles=server.log.%year%-%month%-
            %zip% -tzip  a -y "%lastmonthfiles%.zip" %lastmonthfiles%*
            if exist %lastmonthfiles%.zip(
            DEL server.log.%year%-%month%-*
            ) else (
                echo file not found
                pause

    Actually it is only the 7Z filemanager that can delete files using the "Move" command and the "Delete after archiving" option.
    if EXIST %lastmonthfiles%.zip ( DEL server.log.%year%-%month%-* ) ELSE echo zip not found
    ¯\_(ツ)_/¯

  • How can I recover an involuntarily  deleted keynote file after trash?

    After 3 days of working in Keynote I moved several files to my new 250gb hard disk. Many files were moved to trash and deleted. My work in keynote was lost and I have tried everything to recover it. Can you help me with this..? Is there a trick to recover a deletd file from trash...? Is there a recover-data file in my computer..? Thanks
    Unease

    How can I recover an involuntarily deleted keynote file after cleaning trash ..?

  • Want to Archive(or)Delete the file after finish the processing tht message

    Hi,
       My scenario is File to File  scenario that is working fine. due to some performance reasons i want to Archive the file (in sender communication channel level) after finish the process . that means after genarting the file in the target directory  then only i want to delete the file in the source directory.
    Any solution for this.....
    Please suggest me .
    Regards
    Jain

    Thanks for your suggestions..
      But that (Delete, Archive) option is there in the sender comunication channel level.. i knew that and that is working fine  in my scenario... but  my requirement is i want to delete the file after finished the process.. because some times message was failed in the Mapping level. but i want for some enahanced functionality point of view i want to delete or Archiveing the file after finish the process that means after genarting the file into target directory....
    Any help will be appriciated.
    Regards
    Jain

  • ITunes is deleting podcast files when I don't want it to.

    I installed the latest version of iTunes and set my podcast settings to only dowload podcasts from the last week (since it was trying to download podcast files that I had previously listened to, then deleted), and delete podcasts was set to off.
    Now, all of the sudden, it is deleting podcast files that are 1) older than a week and 2) dowloaded with the new iTunes.
    I want to go back to the old iTunes behaviour of downloading only the most recent podcast (unless it has been previously downloaded) and only deleting files if done manually!

    I have to agree. I've been using iTunes/iPods exclusively for listening to podcasts since 2008, and within the past year it's just gotten increasingly frustrating and confusing to use both iTunes and my iPod for this purpose. I just found this thread because my iPod auto-deleted a podcast that I'd only listened to for 10 minutes; and I don't want it to ever delete podcasts without my consent. Truly infuriating.

  • Create Action that delete input file after OCR

    I've created an Acrobat X Pro action that OCR's all files in a given INPUT directory and then save the OCR file in an OUTPUT directory.  Is there a way to delete the file from the INPUT directory once it's processed?

    Hi,
    There is a way but I would not do it. Rather than put the files to an "output" folder you can replace the original files in the "input" folder. Why not delete the original files through windows when the process is complete?

  • How to delete .pdf file after viewing in SAP

    Hi,
    I've a program to show a pdf file within a SAP window using the open document method form the class cl_gui_pdfviewer. Now I want to delete the pdf file once I choose the back button or exit the program. How can I do that.
    In the PAI for the screen showing the pdf file, I have a case statement to perform the following
      When 'EXIT'
         call method my_pdf_viewer->close_document.
            .....    <--- some coding to try deleting the pdf file
         leave program.
    endcase.
    It seems that the pdf file is still in use by the program and cannot be deleted before leaving the program. Please help.
    Thanks in advance,
    Francis

    Hi All,
    I have had this issue and have finally resolved it.  Here's how:
    you need to destroy your custom container and html viewer control AND flush the front end cache.  This releases the lock on the file and lets you then delete it.
    Here's an example code:
    When 'EXIT'
    call method my_pdf_viewer->close_document.
      CALL METHOD my_pdf_viewer->FREE
        EXCEPTIONS
          CNTL_ERROR        = 1
          CNTL_SYSTEM_ERROR = 2
          others            = 3
      IF SY-SUBRC is initial.
        free my_pdf_viewer.
      ENDIF.
    this is the custom control parent container that contains the html control
      CALL METHOD MY_CONTAINER->FREE
         EXCEPTIONS
           CNTL_ERROR        = 1
           CNTL_SYSTEM_ERROR = 2
           others            = 3
      IF SY-SUBRC is initial.
        free my_container.
      ENDIF.
      CALL METHOD cl_gui_cfw=>dispatch.
      CALL METHOD cl_gui_cfw=>flush
            EXCEPTIONS CNTL_SYSTEM_ERROR = 1
            CNTL_ERROR = 2.
    ... <---- Delete PDF file (Delete Dataset xxxxxx.pdf)
    leave program.
    endcase.
    The other issue brought up is probably a permission issue -- trying to read the file from the presentation server versus a mapped drive that the SAP backend can access.  I read pdf files from a shared drive that the SAP backend can read/write to and it picks it up and displays just fine.
    Cheers,
    Matt

  • Save or delete movie files after syncing???

    can i delete the movie files on my pc that i already have synced in my apple tv??? or do i have to save them and sync them again the next time that i want to add another movie into the apple tv???

    That depends on your setting!!
    If you have checked the option to copy the files into your iTunes folder -> you can delete the original. If you have unchecked the option -> keep the file, otherwise it's gone!
    What SjMulder was referring to: If you delete a file from the Finder but not from iTunes' library, it will probably not get deleted from ATV. You'll still have it in iTunes with an exclamation mark (for "file not found"). I wouldn't recommend that strategy, you basically mess up your whole library.
    It all boils down to: If you sync a movie, you have to have two copies of it, one on your computer (or external storage), one on the ATV. ATV is not a device to extend your disk space.
    Message was edited by: Christoph Drösser

  • Deleted RAW file after "Open with External Editor"

    I opened a file in PS using the "Open with External Editor" command and saved and it saved the update in Aperture but I needed to make anothe change so I did the same as before using the "Open with External Editor" command. Aperture created another "version" so I attempted to delete the version and it deleted all the versions as well as the "Master" RAW file. I went into my trash to find the RAW file and PS file that I wanted to keep but the RAW file was not there. I don't understand why it would put the PS file in the trash but the RAW file is nowhere to be found. Is there another place that it would go?
    Dual 2.7 G5   Mac OS X (10.4.8)   5GB RAM

    If the master was inside the Library then after deleting it, should be in the Trash, inside a folder called Aperture.
    If it was a referenced master it should be still in the location it was unless you ticked the box 'send master to trash', in that case it'll be the same as if it was inside the Library.

  • Deleting a file that I "don't have permission to access"

    I have ended up with an alias on the root level of my drive. The alias points to another computer that is no longer on the network and never will be again. The file cannot be trashed, I am informed I "don't have permission to access some of the items".
    Could someone please tell me how to get rid of that file.
    Thanks.

    You can try this procedure:
    http://support.apple.com/kb/HT1526?viewlocale=en_US
    or this solution:
    Open Terminal (Application-->Utilities-->Terminal)
    1) paste:
    *sudo rm -i*
    (enter a single space after command)
    2) then drag the file into the Terminal window (this is a shortcut to typing the file path,)
    3) then press enter
    4) enter your password
    5) if the file is indeed the one you want deleted, then enter "y' (this deletion cannot be undone)
    Message was edited by: leroydouglas

  • How can I save space on my Macbook Pro after making videos on iMovie & FCP ? Should I delete my files after?

    Okay so I make a lot of videos on my mac for my Youtube Channel. I have quite a few projects and movies from Movie, but ive recently switched over to Final Cut pro and the rest is history. However im running out of space on my hard drive, FAST! to the point i cant even edit my new video. Silly me for not paying attention to the warning signs (ie slow computer duh...)
    So my question is, is it smart to delete my projects, events and original videos once ive exported and uploaded the the final video? I think Im quite the hoarder when it comes to these things like im worried i might need it for something. Is there anyone who has a YT channel or makes videos regularly relate to what im saying and what are your ways on saving space and what you do once you've finished your project?????
    Thanks a bunch if you can help I just need someone else's insight and opinion to help me decide what to do....

    There are really two answers depending on how much money you are willing to spend, and how much editing you plan to do on the footage.
    Option 1) You can rely on your Digital8 tapes for backup, and re-import them if you ever need the footage again. You can delete your event files (once you have completed all Projects). Once you have SHARED your projects in all sizes you need, the projects are in a compressed format. Once you delete the Event files, no further editing will be possible.
    Option 2) Keep the Event Files on a large external hard drive, and back it up. This way, you have maximum flexibility for future editing, future new projects, and you don't have to worry about the lengthy import from a nearly obsolete tape format again. I recommend Option 2. External drives are relatively cheap these days, and your time is probably more valuable than the cost of an external drive and the cost of the re-import.

  • Deleting imovie files after export

    Can I delete my imovie folders for movies that i have finished and exported to a .mov file? The folders with the original imovie files are huge (17 gig on average) and I need the drive space. To make dvd's in the future do I only need the idvd project file and the exported .mov?
    thanks,
    Craig

    Welcome to the forum, Craig.
    To make dvd's in the future do I only need the idvd project file and the exported .mov?
    To edit a DVD later you need 1) the iDVD project file and 2) the source movie you originally included on that DVD.
    If you exported the iMovie project to a movie for iDVD, you don't need to keep the iMovie project any longer. You need to keep it only if you haven't exported the project to a movie for iDVD. If you still have the movie, it's okay to trash the entire iMovie project folder.
    Note that iMovie 4 lets you make an iDVD project without exporting the iMovie project to a new movie.
    Karl

  • Siri 8.2 Bug: siri deletes all text after pressing "Done"

    After the upgrade to 8.2, when dictating text through Safari into an open field, once you press "Done" to end Siri dictation, all text entered is deleted.
    We have tested this multiple times with both 8.2 based iPhones (5S, 6 and 6+).   All 8.1 based units work fine.  All 8.2 units fail.
    How does one go about reporting such an issues to Apple?

    HI,
    I am having the same issue in IOS 8.2. The dictation feature is useless because it erases everything i have written, or certain characters. Now i cant use it in MS Word. This is a big problem for ppl that heavily relies on it for writing messages, articles, etc. Please we need a soon fix Apple!!

  • Can I delete laptop files after backing up?

    I am an art student and my computer only has 70 gb of space left and is running pretty slow. Is it possible to delete all my files on my laptop because everything is backed up on my external hard drive? Bad idea?
    I'd appreciate any feedback  - thanks!

    You clearly have limited if any experience with any qualified backup tool.  And your posts from last night indciate your actual age, so the lack of experience is not surprising.
    A backup in a system like TimeMachine or CarbonCopyClone will eventually be rolled off of the disk to make room for more recent backups.  Then you have no copies.
    Please spend more time reading and less time responding.  You will learn more that way.  Then eventually you will have something to actually contribute.
    You can start learning by reading posts from me, Network23, stedman1, Camelot.
    None of them suggest deleting from internal drive after it is on the backup.
    But you shold follow your own advice.  Then live the consequences.  You will be less likely to give that advic again.

  • My ipod deleted all files after resetting

    it did that, so i went back to connect it to the computer to get the music back on it. And, so i went to turn it back on and now it wont turn on. Could this be because my battery is dead and i need to send it in to get a new one since i have had it almost a year?

    i believe you're supposed to let the battery recharge after resetting it. i'm not positive but try it anyway, it can't hurt.

Maybe you are looking for

  • Adobe Premiere Pro CS5.5 crasing from ripple delete and copy

    I've been using Adobe Premiere Pro CS5.5 for several months now and it's been working with next to no problems and I've been very happy with it until today. As I've neared the end of a recent project, after doing nothing different than usual I went t

  • Problem in moving my messages

    I'v got an N70. I'v moves my messages to phone memory from my mmc card by moving the Mail folder from E:/System to C:/System they are moved and can be seen in my phone messasges but they cannot be opened now ! What to do now?

  • Garbage characters on PDF output

    My PDF documents converted from Word sometimes have a short bit of garbage characters just about the TOC.  Not everyone sees the characters on the document. It only is visible to a few individuals. See the attached. Is there a setting that needs atte

  • I need to make a spreadsheet based on info from specific table columns and headlines above those tab

    Hi all, A client of mine is requesting that I create a spreadsheet from a huge catalog that I am doing for him (this will also be done for all similar huge catalogs). The spreadsheet needs to pull information from some of the table columns, as well a

  • MYSQL error in JDeveloper 10g using ADF Swing

    I am trying to update data in mysql database. But the following error appears in JDeveloper 10g using ADF Swing Mysql library is mysql-connector-java-3.1.12 What is the problem ? INSERT and SELECT queries do not give errors. But UPDATE has problem. T