473,383 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 1978
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.