Del file without trash can

If you del a file in NT, the file just only is deleted, but the same code in W98 take the file into the trash can.
Can we delete it definitively?
Thanks

Actually in either case....files are not deleted, just the reference to them are deleted. If you want to make files "unrecoverable" then you would need to overwrite the location on the disk where they reside with something else. Java gives you no such fine-grained control but you could do one of two things:
Either write a routine using C, put into a DLL and use JNI to call that routine to remove the file.
or
Write a routine in C - an executable that you call using java that you use to delete the file.
First method is best but harder to do.

Similar Messages

  • Stuborn file in trash can.

    Hi,
    I have a strange file in my Trash can , that refuses to be deleted.
    I do a 'ls' and see the following :
    $ ls
    ls: Tiếng Việt.html: No such file or directory
    total 0
    drwxrwxrwx 3 root admin 102 Apr 24 23:45 .
    drwxrwxrwx 3 root admin 102 Apr 24 23:45 ..
    if I then try to delete Tiếng Việt.html I get :
    rm -R Tie\314\202\314\201ng\ Vie\314\202\314\243t.html
    rm: Tiếng Việt.html: No such file or directory
    Note that I dont type the filename. I press <TAB> after the T and it autocompletes the filename.
    I have tried forcing the deletion of the entire .Trash directory without any success. I have tried Trashit & Cocktail without success.
    Any ideas.
    Alan.

    Niel,
    Ran the Disk Utility :
    Repairing permissions for “Macintosh HD”
    Determining correct file permissions.
    Permissions repair complete
    The privileges have been verified or repaired on the selected volume
    But still got the same results :
    $ ls
    ls: Tiếng Việt.html: No such file or directory
    total 0
    drwxrwxrwx 3 root admin 102 Apr 24 23:45 .
    drwxrwxrwx 3 root admin 102 Apr 24 23:45 ..
    $ rm T*
    rm: Tiếng Việt.html: No such file or directory
    Alan.

  • Macbook Air Restoring files from Trash Can in Time Machine

    I have memory issues with my Macbook Air.  I think casued by the fact iphoto uses so much memory.  Last week I was trying to download some photos but got a message saying my start up drive was nearly full.  Next think i know, the Macbook has somehow dumped about 500 of my old photos in the trash can (I didn't do this).  A few minutes later I look in the trash can and find it's emptied itself. 
    The next morning when I turned on my laptop, about 1 GB of memory had reappeared, and the photos were back in the trash can.  My plan was to restore the photos however I stupidly didn't do it immediately as I was busy.
    Now a weel later, I again got the message that my start up drive was full.  The photos have disappeared from the trash can.  I have reboted the Mac, but they have not reappeared.
    I backup using an external hard drive and Time Machine.  All I want to do is go into the trash can on the back up and restore the photos from there.  I don't want to restore the whole Mac, as I will lose all the work I've done since that last back up, won't I?  I can't search for the specific files on the Time Machine as I don't know what they're called - they were 100s of photos, the names were numbers only and I don't know which photos they were - as it wasn't me who deleted them!
    Please can anyone help me?
    I find these issues so frustrating, and I can't believe my 60 GB laptop is full.  I only use it for photos, browsing the web and a few documents.  My previous Windows netbook was about a quarter the size and never got close to full. 

    Do you know if the hard drive is full, does iPhoto move files to the trash can?
    No, it doesn't.
    Or does it have a setting to clean up duplicate files
    No. There are third-party applications that purport to do it, and if you used one of those, that would explain what happened.
    Is my only option therefore to restore the entire system to an earlier date?
    I don't see why you would need to restore anything other than the iPhoto library, or whatever folder contained the missing files.
    You can't do a partial restoration of the iPhoto library; it's all or nothing. However, if you restore an older library to a new location, you can extract images from it and import them into a newer library.

  • System file in Trash Can?

    I tried to empty my trash can and found this un-trashable folder "Backups.backupdb" and when I moved it to the desktop and  opened it, I found these nested folders:
    Backups.backupdb > name > name iMac> dates System> Library> CoreServices > boot.efi.
    I have no idea how it got in the Trash, what it is and if it should/should not be trashed... if if can be trashed. And if it's needed, where should I move it to... if I can move it off the desktop.
    Brian

    mendel1,
    Maybe that wasn't such a good idea. I tried it and this was running for half an hour before I tried to stop it:
    Now I can't get rid of it, I can't stop it and I can't even "restart" from Finder.  Suggestions?
    Brian

  • Weird File in trash can--can't delete

    I Have this weird file in my trashcan that won't delete. I can drag it out of my trashcan and put it on the desktop and it disappears only to go back into the trashcan a couple days later. I have no idea what is causing this. Any help would be appreciated. Attached is a Picture of my trashcan so you can see what i'm talking about
    [img=http://img233.imageshack.us/img233/1561/picture1yf8.th.jpg][img=http://img233.imageshack.us/images/thpix.gif]

    I've used Force Empty Trash and it has not failed yet:
    http://www.versiontracker.com/dyn/moreinfo/macosx/17841
    Thanks ... Ken

  • Repeating File in Trash, Can't Empty It

    Somehow I got this forever looping combination of folders in my Trash, and now it won't let me empty the trash.  It's kind of hard to explain, but if I open the trash, there is a folder in there called "RaceImages 11.36.24 AM [7/3]".  If I drill into that folder, it goes on forever like this....
    "RaceImagesThumbs > Desktop > RaceImages > RaceImagesThumbs" and on and on, repeating for basically ever.  I could drill down to eternity and still not be able to delete the trash.  I've drilled down through that repeating sequence a hundred times and still not seen an end.
    If I attempt to empty the trash, it first says "the operation can't be completed because the item 'ML1_2014' is in use.", but I don't see that file.  If I click continue, it says it can't be completed because the item "Desktop" is in use, and from there my repeating folder nightmare starts.  Clicked 'Continue' a 100 times and the same sequence of folders as above are "in use".
    Tried "Secure Empty" the trash, tried the finder menu "Option > Empty Trash".  All to no avail...same error messages.
    Does anyone have any idea what I can do here?
    Thanks for the help...

    I have actually had a similar issue like this before and it was a simple fix once I figured it out.
    Move the folder that is in the trash to your Desktop.  Open it and then move the folder that is in there to the trash.  You should be able to empty the trash.  Next move the empty folder that you had put on the Desktop back into the trash and you should be able to empty it again.
    Also, you should run an app like DiskWarrior, TechTool Pro or Drive Genius that can rebuild the volume directories.

  • Nul File in Trash Can

    I have a file that keeps returning to my trashcan!
    Kind: Alias
    Size: 0 KB
    Date: Dec. 31, 1903
    Name: nulnulnulnul.1/2,
    Can someone please help me make it go away? Thanks!

    Hello page95,
    And welcome to Apple Discussions!
    I don't have any direct answers for you, but I may be able to point you to somebody or somewhere that can. Do you by chance use Bootcamp or Parallels? If so, you may need to run a Checkdisk on the Windows side to get rid of it.
    http://discussions.apple.com/thread.jspa?messageID=6137123
    Hope it helps.
    B-rock

  • I want to use preview to view pdf files without trashing the adobe plug-ins?

    Some of the government web sites that I need to visit regularly require me to use firefox and adobe for opening and viewing files. I would like to still be able to use Safari and Preview for opening, viewing and printing files from other web sites. Before the latest adobe update this was no problem, but now Adobe seems to have taken control over the viewing and printing settings so that even though I try printing from a Safari viewer window I get an Adobe message that this is not supported. I tried to search for an answer as I suppose I am not the only one having this problem after the most recent Adobe update. Thanks for your great help everyone. /Christian

    See if either of these help you.
    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Deleted files do not go to trash can

    i.e. when i delte a file, it is gone forever. I cannot restore it since I see no files in trash can.
    Also, installed windows on bootcamp, but does not detect cd rom driver.
    Anyone know why?

    1. Triple-click the line below to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu. An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.

  • Time estimation of a class file without execution

    Can any body help me....
    I have to find the execution time of class files without execution.
    can I do it with java...!!!!!!!!!!

    Presumably this is a class assignment and not a work assignment. If it is for work then either ask for justification for this stupidity or start playing games and looking for another job.
    Use javap and count the byte codes. Each byte code has a size so give a execution time of n X size. Each branch has a execution time of n X size + 1 (since it take longer.) Each method call is n X size + 2 (a goto and a return.)
    'n' in the above is an arbritrary constant.
    Each method is the sum of its contents. If you have a loop that calls a method you have to estimate the average loops and use that multiplied by the method count.
    For system methods you will just have to list them and give each a unknown time, since presumably you aren't analyzing everything.

  • A strange ghost file in Trash which can not be erased? Any help?

    A strange doc in Trash -named  ¨ð?, ïÖó.l—s
    - resides in the trash bin
    -is alias
    -size zero Kb
    -can not be moved opened or deleted
    -no created or modified dates on display
    in info   window tells me  that it's file with unknown access.
    It doesn't cause any visible harm I just want to find out how this file appeared and how to get rid of it.
    -when did search for invisible files
    found it in Bootcamp>.Trashes>  501 which is a folder, empty.
    (The Bootcamp partition is empty, I created it when purchased the laptop just in case I install Windows someday. When I open it there is just empty Desktop folder ,size  zero Kb)
    Here it gets weird with this 501 folder - on the finder window  is displayed  that  it is  created on 27 April 2025 at 7.33pm.
    Now is the year 2011,  so how a folder can be created in the year 2025???
    It gets even funnier with the dates - when  I go right click>Get Info, on display I see that this folder is created Sat, 20 August 1983 10:12 AM (!!!!!!
    and modified on 27 April 2025 at 7.33pm.
    Tried to move it to Trash  -  the “Preparing to move to trash” animated bar appears, keeps moving forever but no result at all.
    Any help with deleting this ghost file (without reinstalling whole system)?
    My Mac has OSX 10.6.8
    Thanks for any help,everyone!
    Samantha

    See Here for
    Trash Problems
    http://www.thexlab.com/faqs/trash.html

  • Uneraseable files and dirs inside the trash can

    I,
    I have got some items in the trash can that wher I try to emply it, I get an error message saying that the can't be erased because they are being used. I have turned off the computer several times but the same thing happens.
    Is there a solution for this?

    Hi,
    I'm terribly sorry for the wrong info!
    In addition, be very carefully while using The Terminal and you can always use whatis and man to understand the command you are gonna use. Example:
    Last login: Thu Dec 16 21:20:40 on ttys000
    The-Universe:~ LS$ whatis sudo
    sudo(8) - execute a command as another user
    The-Universe:~ LS$ whatis rm
    rm(1), unlink(1) - remove directory entries
    The-Universe:~ LS$ man rm
    RM(1) BSD General Commands Manual RM(1)
    NAME
    rm, unlink -- remove directory entries
    SYNOPSIS
    rm [-dfiPRrvW] file ...
    unlink file
    DESCRIPTION
    The rm utility attempts to remove the non-direc-
    tory type files specified on the command line. If
    the permissions of the file do not permit writing,
    and the standard input device is a terminal, the
    user is prompted (on the standard error output)
    for confirmation.
    The options are as follows:
    -d Attempt to remove directories as well
    as other types of files.
    -f Attempt to remove the files without
    prompting for confirmation, regardless
    For man, press space bar to continue the manual or q to quite.
    Cheers.
    Message was edited by: (n_n)

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • HT1449 Ok. I have an '06 Macbook Pro still running on Snow Leopard 10.6.8, and iTunes 10.6.1. I did everything in this article leading up to step 14. I thought I trashed the right file, now I can't access my music which is on my external drive now. Help!

    As stated in my above Subject field. I have an older Macbook Pro and I was attempting to move my iTunes media file using this article:
    http://support.apple.com/kb/ht1449
    After getting to step number 14, I "thought" I selected the correct media file to trash from my system. Now I have my correctly copied Itunes file on my external drive that can't be accessed when I reopen iTunes. How can I get iTunes to open to my new destination now? I went to iTunes > Preferences > Advanced and selected the new location then click OK, but it still won't access.
    What am I doing wrong here?

    I had the same problem and found the answer! 
    In Outlook, go to the Help menu, then Check for Updates.
    I downloaded & updated Outlook, then it upgraded my database, and everything worked out fine for me!
    Good luck!

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

Maybe you are looking for

  • Tax statement item missing for tax code A0

    I got intercompany billing that has not been released to accounting, when I tried to release to accounting got this error message : Field Profit Ctr is a required field for G/L account 6000 14112100 Message no. F5808 Diagnosis The value for field "Pr

  • Request to HTC S620 owners - does Windows Update w...

    At some convenient time, can you do a Start, Settings, More, More, Windows Update, Check Now. Does it work? Mine is failing with "Connection to update server was not available". I have dropped the Anyware part of my Broadband and have the phone on a

  • Output determination for invoices

    Hi, I have tried using output determination to automatically output an INVOIC02 IDoc when I create one manually in MIRO. I have set up the partner profile and condition records OK, such that a message entry automatically appears when I create the inv

  • Convert a date to MMDDYYYY

    I'm attempting to write a formula to convert a date field to an 8 digit string, which is later barcoded for a customer requirement.  If the month or day is <10 then it needs to be padded with a zero, so the overall result is always 8 digits. I though

  • APEX as webservice or some kind of interface to return charts

    Hello, I am wondering if APEX have this kind of capability or not. All I need is a Chart (Flash or html) return in any kind of format(for example Image), when invoked as a webservice. I am generating a pdf in Oracle Reports & java. I need a chart to