|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Recycle BinIs there a way in VB to delete a file thats located on a USB memorystick and
"move" it to C:\recycle bin ? I want the operator to have a chance to restore the file again. /Stlun > Is there a way in VB to delete a file thats located on a USB memorystick and The SHFileOperation() API call allows you to delete a file to the recycle bin, although I'm not sure if it will properly> "move" it to C:\recycle bin ? > > I want the operator to have a chance to restore the file again. when deleted files from removable media such as your USB memory stick - does Windows? Your other option is to keep a local filter on your hard drive and either keep a copy of all the files in there or just those that have been deleted. Hope this helps, Mike - Microsoft Visual Basic MVP - E-Mail: ED***@mvps.org WWW: Http://EDais.mvps.org/
Show quote
Hide quote
"Mike D Sutton" wrote: Thanks for the tip, and yes when deleting a file from a removable media or > > Is there a way in VB to delete a file thats located on a USB memorystick and > > "move" it to C:\recycle bin ? > > > > I want the operator to have a chance to restore the file again. > > The SHFileOperation() API call allows you to delete a file to the recycle bin, although I'm not sure if it will properly > when deleted files from removable media such as your USB memory stick - does Windows? Your other option is to keep a > local filter on your hard drive and either keep a copy of all the files in there or just those that have been deleted. > Hope this helps, > > Mike > > > - Microsoft Visual Basic MVP - > E-Mail: ED***@mvps.org > WWW: Http://EDais.mvps.org/ > > > networkdisk windows doesn't give you a restorepossebility. To get a restoreoption I do a interim storage to c:\app.path and then deletes it from there into recycle bin with SHFileOperation. /Stlun "Stlun" <st***@DELETE.THIS.hotmail.com> wrote in message
http://www.pgacon.com/visualbasic.htm#Deleting%20Files%20to%20the%20Recycle%20Bin
news:2A4FB9D6-E1BA-4AED-9954-C9C238AAFA1F@microsoft.com... > Is there a way in VB to delete a file thats located on a USB memorystick > and > "move" it to C:\recycle bin ? > > I want the operator to have a chance to restore the file again. > > /Stlun --
Peter Aitken Remove the crap from my email address before using.
Multiple Timer Advice
form section color Height limitation of picturebox Binary Math Help VB6 don't see events of the implemented interface checkbox always is disabled!!!! Simulating relational database with text files load extern exe file into mdi framework? X-axis value of Excel chart Something better than DoEvents? |
|||||||||||||||||||||||