File.delete() - is there a way to send to Recycle Bin?

I'm using the file.delete() command currently - is there a way, since all my users are on Windows, to Recycle the files instead?

Wikipedia 'recycle bin' seems to indicate that the location may vary from
OS to OS and from file system to file system.
There are API's for it though.
[http://www.codeproject.com/KB/shell/recyclebin.aspx] explains how to do it programmatically.
You would have to write some JNI/JNA/Runtime.exec() code to bridge between Java and native.
Edit: If you can find a command line utility that you can Runtime.exec(), good for you!
I could not find any, but i did not search too much.
Edit: Found some C++ code for such an utility:[http://msdn.microsoft.com/en-us/magazine/bb985590.aspx]
Edited by: baftos on Aug 4, 2008 4:45 PM

Similar Messages

  • Is there any way to send an album without all the photos attaching and the file being huge? and the file being huge?

    Is there any way to send just a link to an album? (vs attaching everything and having a huge file?) Thanks!

    No.
    File -> Export and send them to a Folder on the desktop. Then do what you will with them from there.
    There is nothing to be gained by installing Picasa if you're using iPhoto.
    Regards
    TD

  • Help...is there a way to send an entire text mesage thread to my email?  My phone is sending duplicate texts and everything I am reading says to delete message threads.  I have an IPhone 4. thanks

    Help...is there a way to send an entire text mesage thread to my email?  My phone is sending duplicate texts and everything I am reading says to delete message threads.  I have an IPhone 4. thanks

    You can try an app like PhoneView (Mac) or TouchCopy (Mac or PC). Both will allow you to archive text messages to your computer.

  • I put together and sent 10 pictures from my granddaughter's birthday party. Is there a way of sending them with a link recipients can click on, rather than having all the pictures download as part of the email message?

    I put together and sent 10 pictures from my granddaughter's birthday party. Is there a way of sending them with a link recipients can click on, rather than having all the pictures download as part of the email message?

    Hello userlarry, do you have Mobile Me? You could use that. Or you could compress them, you would still need to send them in an email, but it would help with size limitations of emails.
    To compress them, put them in a folder and right click on the folder. You should see a Compress option. Then just drag the .zip file into your mail.
    Regards,
    Graham

  • Is there a way to send a pdf form with a place for a picture. The picture could be added from the photo gallery or tablet camera?

    Is there a way to send a form to a field force that allows a picture to be added. The field person could add the picture from the tablet's photo gallery or take a photo with the camera?

    We have encountered the same problem at our company, and the following thread help us to resolve our problem:
    Thanks to KevinCur.
    Error while saving a .PDF File to a mapped drive
    "It has to do with Protected Mode being turned on.  I don't know if it was off by default & now it is on with the update but turning it off changes Adobe Reader's behavior back to what the users expect - a prompt warning you if you want to overwrite the existing file & then selecting Yes to overwrite.
    To disable Protected Mode:
    Start Adobe Reader
    Edit - Preferences - Security (Enhanced)
    Uncheck Enable Protected Mode at Startup
    Close Preferences & Close Reader"
    We unchecked the "Enable Protected Mode at startup" box --> Yes --> OK.  Our users are happy now.  ^_^

  • Is there a way to send a message from Mail to an iPhone's Messages?

    Is there a way to send a message from Mail to an iPhones Messages?

    "Send an SMS text message
    You can use iChat to send an SMS (short message service) text message to a buddy’s iPhone or other mobile phone from an AIM, Mac.com, or me.com account.
    Note: SMS messaging is available in the U.S. only. 
    Choose File > New SMS.
    In the To field, type your buddy’s phone number, and then click Chat.
    In the chat window, type a message and press Return.If your buddy’s phone is set up to receive text messages, you see a reply telling you that the message has been sent. If your buddy replies, the reply appears in the chat window.
    To receive text messages, your buddy’s phone must be SMS enabled."

  • I've downloaded several games onto my ipad and they take up space.  Is there a way to send them to the icloud for storage to free up my internal storage? jan

    I've downloaded several games onto my ipad and they take up space.  Is there a way to send them to the icloud for storage to free up my internal storage? janvan2

    no, you can't store games in icloud.  But you can delete them from the ipad and later get them back from the itunes store without paying for it.

  • I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone.

    I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone from this ipad. Everytime I try to send a message to a person that does not have an Apple product ( Iphone or Ipad ) it comes up saying contact is not registered for iMessage and wont send it. I can only send them a message from my iPhone 4 instead. Do I have to install a new App from the App store to send these non iMessage cell users a message?

    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Is there a way to send multiple pdf's in one email from iBooks?  I have several that I've saved that I need to send to one person. If it can't be done directly, is there a work around?

    Is there a way to send multiple PDF documents from iBooks in one email?  I have several that need to be sent to one person and can't figure out how to send more than one at a time. If you can't, is there a workaround?

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there a way to send and receive SMS on multiple cellular devices without using iMessage?

    I currently own a cellular iPad mini and an iPhone 4s and would like SMS to be the same on both devices as well as my desktop.
    After many months of struggling with iMessage, I decided to turn it off entirely.  I discovered that my best friend did not receive dozens of my texts over the span of a few months (I compared our message history side by side).  Seems like it had something to do with traveling in and out of wifi zones or possibly conflicts between our two carriers, ATT and Verizon.  Regardless, I am not willing to dive into iMessage fully until this gets sorted out.  Further, SMS is the standard message format for everyone outside of the Apple sphere, and I do not feel comfortable lumping them together into one app.  If I decide to switch to Android, will all of my contacts with iPhones continue sending me iMessages?
    Thank you for your help!

    Is there a way to send and receive SMS on multiple cellular devices without using iMessage?
    Search the iTunes App Store for any 3rd party SMS apps that may be available.
    If I decide to switch to Android, will all of my contacts with iPhones continue sending me iMessages?
    Android phones don't receive iMessages, they can recieve SMS messages sent through the iOS Messages app. The app that your contacts choose to use to send you messages is completely up to them.

  • Is there a way to send an e-mail to everyone in my address book WITHOUT typing/selecting each address in individually?

    My old e-mail address is going to be discontinued and I need to notify everyone in my Mozilla Thunderbird address book. Is there a way to send an e-mail to everyone in my address book WITHOUT typing/selecting each address in individually?

    Bonjour zmerill
    Yes it is possible and simple to do.
    - In the compose window of TB, display the address books on the left
    - select the adress book you want
    - select normally the first contact (left click)
    - while pressing a shift key, select the last contact (--> all selected)
    - just under the last contact, use the button you want.
    In an address book it is also possible to create a mailing list.
    Pierre

  • Is ther a way to send music to multiple airplay speakers on my ipad without having to use itunes

    Hello all, l have a question that relates to air play and my ipad 4.
    ls there a way to send music to multiple airplay speakers with my ipad 4 without having to use itunes as the master controller on my other PC. l know it is possible with itunes, but surely the ipad should be able to play to more than one airplay device at a time, we are living in the year 2013.
    Is there an alternative and if there is not, could someone please explain or point me in the wright direction why it is so!
    Thank you all in advance for your comments

    Yes there is and I'll be happy to email you how. [email protected] is my address.

  • Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMe

    Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMessages.

    Kolyei, sorry for the late reply.
    Have your brother create a contact in his phone for himself. Inside his own contact, have him add his phone number and his iCloud address.
    Settings > Messages > Send & Receive Have your brother select both his phone number and email addresses where he would like to receive iMessages.

  • One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    Wow, have seen Files do that, but a whole Folder as I recall!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • When I sync my iPhone 5 to Outlook 2010, the email addresses that I have listed as Email 1 for any given contact in my iPhone will be automatically moved to Email 3 in the Outlook file. Is there a way to fix this?

    When I sync my iPhone 5 to Outlook 2010, the email addresses that I have listed as Email 1 for any given contact in my iPhone will be automatically moved to Email 3 in the Outlook file. Is there a way to fix this?

    iCloud email supports 'plus' addressing. http://en.wikipedia.org/wiki/Email_address#Address_tags
    So your friend could just add '+research' to the username part of your email address, and you setup a rule at icloud.com to put all emails sent to that address into a particular folder.
    For example:
    [email protected]
    There's no way to do it without rules on the server though.

Maybe you are looking for