Secure Delete - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Secure Delete

jomatgjomatg Posts: 3Member
I am working on a program thats supposed to send the file that you delete from your jump-drive into a specific folder. It basicaly works as a cut and paste but the paste part must be automatic and into a specific folder. The procedure must know what file it is im "deleting" and instead of deleting it, it must send it to a folder on my computer. This will be done by adding a feature to the right click list (the right cick menu thing ss already done). Any ideas of how I should do this ?

Comments

  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : I am working on a program thats supposed to send the file that you
    : delete from your jump-drive into a specific folder. It basicaly
    : works as a cut and paste but the paste part must be automatic and
    : into a specific folder. The procedure must know what file it is im
    : "deleting" and instead of deleting it, it must send it to a folder
    : on my computer. This will be done by adding a feature to the right
    : click list (the right cick menu thing ss already done). Any ideas of
    : how I should do this ?
    :

    Use FileCopy followed by Kill. Make sure you handle any errors that arise! For instance, when the copy fails, don't kill the file, and other such events.

    If you also want to 'hook' the file deletion, then you'll have to use Windows API's.


    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • phixjnjphixjnj Posts: 9Member
    : : I am working on a program thats supposed to send the file that you
    : : delete from your jump-drive into a specific folder. It basicaly
    : : works as a cut and paste but the paste part must be automatic and
    : : into a specific folder. The procedure must know what file it is im
    : : "deleting" and instead of deleting it, it must send it to a folder
    : : on my computer. This will be done by adding a feature to the right
    : : click list (the right cick menu thing ss already done). Any ideas of
    : : how I should do this ?
    : :
    :

  • phixjnjphixjnj Posts: 9Member
    : : : I am working on a program thats supposed to send the file that you
    : : : delete from your jump-drive into a specific folder. It basicaly
    : : : works as a cut and paste but the paste part must be automatic and
    : : : into a specific folder. The procedure must know what file it is im
    : : : "deleting" and instead of deleting it, it must send it to a folder
    : : : on my computer. This will be done by adding a feature to the right
    : : : click list (the right cick menu thing ss already done). Any ideas of
    : : : how I should do this ?
    : : :
    : :
    :
    :
    i agree with this bit guy, but using file.delete is a better option then kill. sounds to me like your moveing the file to a container before you delete it. so why not use File.move OR Directory.Move? even if you use kill the file is not securly deleted. it can still be recovered. Directory also gives you all the options you need for file info and directory info. just an opinion though. have fun

    phixjnj
  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : i agree with this bit guy, but using file.delete is a better option
    : then kill. sounds to me like your moveing the file to a container
    : before you delete it. so why not use File.move OR Directory.Move?
    : even if you use kill the file is not securly deleted. it can still
    : be recovered. Directory also gives you all the options you need for
    : file info and directory info. just an opinion though. have fun
    :
    : phixjnj
    :

    The thing is, Kill and FileCopy are VB6 compatible, whereas the File and Directory things are VB.NET. But if you have VB.NET I'd advise you to use those functions rather than the 'legacy' FileCopy 'n Kill.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.