PDA

View Full Version : I need visual basic6 code



elsayed24
05-17-2006, 12:35 PM
Dear
I Need Visual Basic Code To Save File From Deleting ( I Meaning " Code To Do File Not Able To Delet " For Prog. Vb6
Thank You Very Much .... Byebye

pww
05-17-2006, 02:12 PM
there is no such code really, visual basic or whatever.
If you want to prevent deletion of a file, you may set the read-only attribute for it, probably also the hidden attribute - this will make some deletion attempts to fail.
Going even further, you may play with file permissions, ownership etc. - but a user with admin priviledges (or an app running with such priviledges) may change these at any time. So there is no 100% sure way to prevent deletion of a file.

elsayed24
05-18-2006, 01:13 AM
thx for your idea mr pww
byebye