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.gi f, 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 1 1567
Try the System.IO and System.IO.Isola tedStorage
namespaces. Other keywords to look for ar FileWatcher,
NotifyFilter, and FileSystemevent Handler...
--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.g if, 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 . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 until the
CDO.DropDirectory.GetMessages() method is called. At
this point, the files are locked until I shut down the
service. After processing and delivery, I need to be
able to delete all the files in the drop directory.
I can delete them via...
|
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 list of files.
Therefore, some temporary files are created which should be deleted after
processing is finished.
This Thread is called several times. When I call it the first time,
everything's ok and no errors occur.
In the second call, I can...
|
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 seems that i am facing problem in accessing an object which has
already been deallocated in stack memory.
unliked java, the object will not be allocated as long as there is a
|
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 and no files are deleted in
the folder.
The peculiarity of this issue is that the files/subfolders cannot be
seen through the windows explorer either. I can only access/delete
them through a command shell.
Any ideas?
|
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.
I, too, am getting nasty FileNotFound exceptions. I've read, and
digested the article, and I think I've found a bug -- it's difficult to
track, though it does happen often.
| |
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 any requested
page to automatically go to the Login.aspx page, AND, the ReturnURL
querystring is correct in the address bar, but no matter what, I can't get
it, once the user is authenticated, to redirect to the new page. It ALWAYS
refreshes the...
|
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.
|
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 toolbar that
uses .net so all pages that use the toolbar need to be .aspx. We have many,
many pages on our site ( 10000 or so ) and we are running into
trouble...here is the issue:
|
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 of section c.
Not sure where went wrong as the web page displayed internal server error.
Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |