472,989 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

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 1959
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: ALI-R | last post by:
Hi All, When we say events are processed asynchronously in for instance Sharepoint ,what dose it mean? Thanks for your help. Ali
3
by: CodeRazor | last post by:
I am creating an aspx page using C# and would like to be able to dynamically create linkbuttons that all run the same fuction on the click event. However, I would like the function to accept a...
4
by: Sampriti | last post by:
I am trying to delete a file from a disk when the user's session ends. So I am putting my file.delete code in Session_End event. I ran the application in the debug mode. When the session timesout...
0
by: RobertP | last post by:
The issue is TransmitFile does not transmit any data or throw an exception (Although it does generate an event in the event log, see below.) Event Log: TransmitFile failed. File:...
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
1
by: RandyJ | last post by:
I created a custom log by following a walkthrough. It created NewLog1. I logged several things successfully. I then tried to delete it and send my error messages to the Application log. The...
4
by: Nathan Sokalski | last post by:
I have a DataList that has an Button as one of the controls in it's ItemTemplate. The Button has a CommandName="delete" attribute, but when I click it the DeleteCommand event doesn't even get...
1
by: Asko Telinen | last post by:
Hi all. I ran into quite strange problem concerning the event raising inside FileSystemWatcher Delete event. First, i would like to describe a bit my environment. I have main GUI...
0
by: Andrzej Lipski | last post by:
Hello I am developing a Windows Ce 5.0 mobile application. I followed the example shown at : Creating Self-Updating Applications With the .NET Compact Framework...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.