468,242 Members | 1,614 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

Event before delete file

I would like to know if as event before delete file exist. My probleme is
with FileSystemWatch, it is only Deleted event, and went I want copy for
bakup my file, the file do not exist :(
Nov 20 '05 #1
3 1790
Personally I don't know of such an event. If storage isn't a problem, you
could theoretically monitor the change event and just make a backup of the
file at that point - later, when Deleted is raised, you'll have a backup to
replace the deleted file.

Hope that helps,
Alex
--------------------
From: "facicad" <ca*@norclair.com>
Subject: Event before delete file
Date: Mon, 3 May 2004 15:52:25 -0400
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <eb**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: hse-montreal-ppp141601.sympatico.ca 64.228.207.20
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11
..phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:200269
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I would like to know if as event before delete file exist. My probleme is
with FileSystemWatch, it is only Deleted event, and went I want copy for
bakup my file, the file do not exist :(


Nov 20 '05 #2
Look my probleme. On server, if any user delete files, I would like copy
this file on specific directory, beacause Windows server 2000 can't put any
delete files in trash. For this I can catch raise delete button.
"Alexandre Moura" <am****@online.microsoft.com> a écrit dans le message de
news:NC**************@cpmsftngxa10.phx.gbl...
Personally I don't know of such an event. If storage isn't a problem, you
could theoretically monitor the change event and just make a backup of the
file at that point - later, when Deleted is raised, you'll have a backup to replace the deleted file.

Hope that helps,
Alex
--------------------
From: "facicad" <ca*@norclair.com>
Subject: Event before delete file
Date: Mon, 3 May 2004 15:52:25 -0400
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <eb**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: hse-montreal-ppp141601.sympatico.ca 64.228.207.20
Path:

cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP11 phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:200269
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I would like to know if as event before delete file exist. My probleme iswith FileSystemWatch, it is only Deleted event, and went I want copy for
bakup my file, the file do not exist :(

Nov 20 '05 #3
"facicad" <ca*@norclair.com> schrieb
Look my probleme. On server, if any user delete files, I would like
copy this file on specific directory, beacause Windows server 2000
can't put any delete files in trash. For this I can catch raise
delete button.


I'd think about a different backup system.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by ALI-R | last post: by
3 posts views Thread by CodeRazor | last post: by
10 posts views Thread by Andrew | last post: by
1 post views Thread by RandyJ | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.