473,398 Members | 2,212 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,398 software developers and data experts.

problem: how to know when temporary static files are requested so that they can be deleted...

In .NET and C#, is there anyway to create a hook for a specific
directory or file where my C# .NET software can monitor which static
web files are requested by the browser?

What I am doing is writing temporary files to a specific directory for
a specific user, and then when the user has requested each file in
that directory, I want to delete all of them.

It will also work if I can delete each temporary file after it is
requested. These files are only requested once, and after that I
would like them to be automatically deleted.

For example, a temporary file might be a GIF file such as
confidential.gif, and after that file is requested once I want it to
be immediately deleted from the temporary directory for that user's
id.

Any suggestions or possible workarounds?

Thanks,

Frank
Nov 15 '05 #1
1 1539
Try the System.IO and System.IO.IsolatedStorage
namespaces. Other keywords to look for ar FileWatcher,
NotifyFilter, and FileSystemeventHandler...

--Richard

-----Original Message-----
In .NET and C#, is there anyway to create a hook for a specificdirectory or file where my C# .NET software can monitor which staticweb files are requested by the browser?

What I am doing is writing temporary files to a specific directory fora specific user, and then when the user has requested each file inthat directory, I want to delete all of them.

It will also work if I can delete each temporary file after it isrequested. These files are only requested once, and after that Iwould like them to be automatically deleted.

For example, a temporary file might be a GIF file such as
confidential.gif, and after that file is requested once I want it tobe immediately deleted from the temporary directory for that user'sid.

Any suggestions or possible workarounds?

Thanks,

Frank
.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up...
4
by: Albert Greinöcker | last post by:
Hi ng, I have a very strange problem within my c# application: One of the (background) Threads in my application is responsible for some image processing tasks (like resizing, clipping, ..) on a...
2
by: yccheok | last post by:
Hi, i am from java background and c++ is quite new for me. Consider the following code: i obtain an warning from my compiler which states: a.cpp:45: warning: taking address of temporary it...
5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
11
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
1
by: Lauchlan M | last post by:
Hi. I have an ASP.net project that works fine. I copied it to another project using the following steps: << (i) create a new VS.NET ASP.NET project.
5
by: THX-1138 | last post by:
hi, I am having a trouble at work. We currently have many pages in our site and we are having trouble with dll's.( we think ) Our site outputs static pages as .aspx pages becasue we have a...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
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: 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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.