.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

find files older than 15 minutes

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net

Can someone please provide me with an example in vb.net of how I can delete a files that was created more than 15 minutes ago? I've been looking on google but can't really find a clear example.I think I need to use FileSystemInfo.CreationTime but not sure..If someone

could get me started I'd appreciate it ...Thank You 

View Complete Post

More Related Resource Links

Help! "You must rerun snapshot because current snapshot files are obsolete" every 90 minutes!

I'm having difficulty with SQL Server replication getting machines in the field to replicate correctly.   Here are the specifics of my installation:   100 remote tablet PCs using web sync to update. 1/2 running Vista, 1/2 XP (all latest updates applied) SQL Server Express 2005SP2 w/ cumulative update 6.   Server: Win2003 (all latest updates) SQL Server 2005SP2 CU6   There is 1 database. For each tablet I create a separate publication (PUB001, PUB002, PUB003, etc.) with filtered articles containing data for the tablet. Each publication has a single subscription -- the tablet to which the subscription is assigned. Subscriptions are set to expire after 14 days. Snapshot agent was run when subscription was created, and is set to run automatically every 14 days.     This is a "test" system which is scheduled to roll out into production in 2 weeks.   For the past month I have been running 6 tablets A-OK with no problems (had 6 separate publications/subscriptions on the server/tablets).   I use a stored procedure to create the publications and subscriptions. This stored procedure hasn't changed in months.   Yesterday, we added another 6 tablets w/ separate publications on the server, using the same aforementioned stored procedure.     The tablet application is set to auto-sync over the internet every 15 minutes.   Starting yesterday afternoon, at random, tablets would st

How to create a "search function" to find files and folders using C++ windows forms?

As mentioned above, how can I make a windows forms application that searches for files and folders specified by the user and display results in a ListBox? Thanks in advance another question: How can I make a textbox transparent? I would be really grateful if anybody told me what books are good to learn windows forms using C++? thanks again

"designer" problem- can't find the files

i got a project (.NET website) from another developer, unlike my project, every page has three parts- the aspx page, the cs page and a "designer" page. i tried to run the web site but i get error problem- "could not load .... type", it looks like the builder can't connect the designer file to the right page. how can i solve the problem can i link the page and the designer...

how to find multiline string literals (@"bla") in .cs files (C# sourses)

Hello, My app searches a key word over .CS file (C# sourse) and I want to exlude all string literals because of possability of appearance of key word within this string which is unwanted. I've already composed a regex for common strings - like this - string s = "bla \"bla\" bla" ; This is highlighted correctly by ((?<!(\\|@))".*?"(?<!\\")) But I can't fix up the case with multiline strings. For instance - string s = @"bla ""bla"" bla" ; or string s = @" bla ""bla"" bla" ; In such type of strings there is a rule - within strings can be quotes but only if they are doubled. These are correct examples - @"bla """"""""bla """""" bla" @""" bla """"bla bla" @""""" bla"" bla bla""" These are incorrect - @"" bla "" bla bla"" @"bla """ bla bla" I have some clues - I know how to catch even quantity of quotes - by this regex - ((?<!")("")*(?!")) how to catch odd quantity - ((?<!")"("")*(?!")) how to catch strings which have even quantity of quotes, ex

Where exactly can I find my files that I used in groove / sharepoint?

My machine software is more or less trashed. All data is still there and I need to format before installing again. I used to keep files in my own sharepoint (grovve) folders, they were not shared with anyone anywhere. I've seen a couple of queries where it says click on workspaces under favourites - not there. I have a copy of my entire drive under my username, so anything that was there is still there. Can anyone tell me where my files are? I'm on WIndows 7 with office 2010 Many thanks

Uploading files produces older versiones

Hi,   I have a sharepoint document library in which i have no versionin enabled. This is my use case: 1) 10/2/2010 i upload a document called test.doc 2) 11/2/2010 i upload a modified document called test.doc 3) the contents in the file are those of 10/2/2010 4) mmm ok. I'll delete the file, emptied my trash bin. and try to upload test.doc (11/2/2010) again 5) the contents in the file are those of 10/2/2010!!!!!!!!!   I'm sure is not some local cache because i try uploading it from different machines and also open it from different machines. Same results. Why is this happening? the only workaroud is to change the name of the file: test1.doc, test2.doc. So, basically i have my versioning system for Sharepoint. It is really getting on my nerves.   Any help will be highly appreciated.   Thanks, Luis

4 gig log files in 2 minutes?

I am having an odd and very frustrating problem that just started showing up  two days ago.

I am starting to receive log files in my MOSS 2007 server:

10/23/2008 14:33:08.99  OWSTIMER.EXE (0x1E60)                    0x1570 Windows SharePoint Services    Timer                          5uuf Monitorable The previous instance of the timer job 'Application Server Timer Job', id '{C455141D-FE86-49BB-88CC-9691AC63AF39}' for service '{5C4ADEDE-0FC5-47ED-8DA7-8BF3DD989A5D}' is still running, so the current instance will be skipped.  Consider increasing the interval between jobs. 

these errors repeat themselves over and over in the log file and as a result the log file is balloning to hundreds of megs.

and in my event viewer i'm getting errors that look like this:

Event ID 17310

A user request from the session with SPID 71 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log directory.

however the SPID seems to change every couple of seconds.

my log files went from about 28 megs to a couple hundred meg.  and out of the blue there appears a log file that balloons to over 4 gig in a matter of minutes.  it is so large that it tries to take up the remai

Visual Studio 2005 can't find my files in subfolders, why?!


I am having a heck of a time with this.  Visual Studio 2005 SP1 can not find my files and javascript files whenever I put it in the subfolders.  In the solution explorer, I've created subolfders such as /js and /css.  This is inside my main folder:  AJAXEnabledWebApplication1\css  and AJAXEnabledWebApplication1\js

In HTML code, when I put this: <script type="text/javascript" src="js/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="ui/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="ui/jquery.ui.mouse.js"></script>
    <script type="text/javascript" src="ui/jquery.ui.selectable.js"></script>

every single one of them is highlighted that it can not find the specified file.  But wait, if I add those files manually to the root folder and to the solution explorer, it is no problem!!?? why?!?

why is this happening?

inside the reference paths for the program, I've also pointed to the root folder location:

c:\document adn settings\myname\my Docum

Delete files older than 3 days using SSIS tasks


I want to delete all files in a given folder that are older than 3 days from today's date.

I tried using a "Foreach Loop container"  with a "File System" task inside it but found I couldn't access any file properties such as the file creation date. Am I using the wrong task for this job?






P.S. History of the problem:

I used the sql 2005 Database maintenance program to setup our database backup jobs. One day I noticed that the free space on the drive where we keep the dumps had grown small. I found that we had at least 4 weeks of dumps in there, not the 3 days I wanted to keep!  I looked but could not find the "delete file" option in the SSIS package generated by the Database Maintenance Wizard. No wonder the files were piling up.

Can't find "Recent files" in File menu SQL Management Studio 2008


After installing SSMS 2008 the menu item File->Recent files   disappeared. I tried to add this item via Tools-> Customize. Now I can see it in menu "File" but it still doesn't work. I click on it but there is no result. What should I do to fix this problem. It is very inconvenient to open files with File->Open->File.

SQL Server 2005 rebuild indexes find corruption or cross linked files


Does anyone know if this is a known issue? What do you do when this happens? We had to go to a good backup from 3 days prior.

From the application log it appears there were cross linked files. Is this caused by the OS or Sql Server?

Pat M


PatM Reno

Where I can find these files?


RESX files in 12\CONFIG\AdminResources\, 12\CONFIG\Resources\, 12\Resources\

how can find these files?

My Personal Blog : http://Ghasemzadeh.ir

Where can I find out the Customized CSS Files on a site?


I am trying to build a provisioner.xml file by hand since the solution generator's Site definition generator will not work.  I found the listid guids and the featureid guids of the features and the keys and the values of the webproperties using SharePoint Manager.  However, I have not been able to locate the list of Customized CSS Files to populate the CustomizedCSSFiles element using SharePoint Manager, SharePoint Designer, SharePoint Sitesettings, or SharePoint Central administration or the manifest.xml file.  I found how to use SPWeb to add a file to the customizedCSSFiles collection using "CustomizeCSS" method of SPWeb, but nothing on how to return the values that have been stored using this method.  I am certain this is something easy and that I simply cannot see the forest for the trees, but right now these trees are pretty big and there are a lot of them.  I have seen references by a number of people to how they built their provisoner.xml file but no one discusses where they got this information.  So any help here would be welcome as I have run out of options.



Find duplicate files




Is it possible to use sharepoint for the finding duplicates files? I need to identify all duplicate files at our network shared drives.


Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

Combine, minify and compress JavaScript files to load ASP.NET pages faster

Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend