Total comments: 20
Page: 1 of 1 showing comments 1-20
1 Next > Last >>
Peter Griffith
Wrote: Tim, Thanks for this simple solution. Being only an occasional SQL user, was driving me mad how to delete 3 orphan uses. PG
On: 21/01/2010
About:How to: Remove users from the ASP.Net membership database
Vlado
Wrote: Thanks a lot! I'm just missing Validation there.
On: 11/01/2010
About:Complete Lifecycle of an ASP.Net page and controls
Tim
Wrote: Thanks! Looks like this post is a gift that keeps on giving.
On: 28/12/2009
About:String.Format and Input string was not in a correct format Error
Time and Attendance
Wrote: Crown Computing, the UK's leading software solutions workforce planning, Time and Attendance, and Time Accounting companies
On: 08/12/2009
About:Crazy Job Advert
Dan Evans
Wrote: I think there is a problem with my DB. Using the SQL above i get some duplicate files (possibly different versions?). Would that be why it's erroring? Also, it wants to delete thumbnails when it shouldn't unless the main file isn't used. Thanks Dan
On: 03/12/2009
About:Clean out unused media items from Umbraco media folder
Tim Gaunt
Wrote: I've just updated it, looking at the code that should have only happened if you changed your db string without reloading the form. Let me know how you get on Tim
On: 02/12/2009
Wrote: Hi Tim Any chance you've fixed the bug in my post above? Or can i get the source code for this project please? Thanks Dan
Jesper Wilfing
Wrote: Sweet!!
On: 18/11/2009
AtlasRider
Wrote: This did help me, thanks!
On: 16/11/2009
About:Store common AppSettings in the web.config and an external file (configSource vs. file)
Adick
Wrote: Bingo!. Thanks.
On: 05/11/2009
bob munton
Wrote: great app! thanks
On: 16/10/2009
About:Excel change case -sentance, proper, lower and upper
Decode
Wrote: Hi, Great tip I used it just the other day. I also found some hardcoded values for the speech bubbles in Umbraco. YOu know the once that appears in the lower right corner when for instance you save a document. - umrbaco/css/umbracoGui.css - umbraco/js/UmbracoSpeechBubble.js
On: 14/10/2009
About:Fix missing JavaScript file when you rename the Umbraco admin directory
Yep
Wrote: That is precicely the situation I found myself in- 10 min past "should have left already", stairing blankly at an empty directory clawing my eyes out yelling "It doesn't exist already! I'm looking RIGHT AT THE FOLDER AND ITS EMPTY!"
On: 13/10/2009
About:C# FileInfo.MoveTo Cannot create a file when that file already exists exception
Интернет Маркетинг
Wrote: Thanks mate!I was looking for that solution nearly all day!I love your blog,awesome!!!
On: 04/10/2009
Aatish
Wrote: Hey, Thanks a lot. Originally, I was getting this System.IO.DirectoryNotFoundException (I still don't know how to fix that). Then, I moved my code to a dff machine. Now, I was getting this, "Cannot create a file when that file already exists". Thankfully, I fixed it! If you know the answer to DirectoryNotFoundException then please let me know. Thanks, Aatish
On: 29/09/2009
vnd
Wrote: thanks for your post! It is useful for me! but it is more useful if you add more detail, such as where each step happen (server side or client side) -- sorry about my bad English--
Sandeep
Wrote: Hi Tim, This is an amazing work and very useful. Thanks for posting.
On: 13/09/2009
Alex
Wrote: Thanks! I tried to uninstall through control panel Management Studio Express, but that isn't worked!
On: 01/09/2009
About:SQL Server Management Studio won't install over SQL Server Management Studio Express
Pierre Marmignon
Wrote: Dear All, Here is an adapted version to clean all Logs found in 1-Level subfolders below the Root Folder. It'll also log in the EventLog instead of msgbox (or console) for better scheduled task compliance. Option Explicit On Error Resume Next Dim intDaysOld, strObjTopFolderPath, strLogFIleSuffix, ObjFS, ObjTopFolder, objShell, tmpObjFileName Dim ObjLogFolder, ObjW3SvcFolder, ObjSubFolder, ObjLogFile, ObjFile intDaysOld = 1 'Number of days to retain on the server strObjTopFolderPath = "C:\WINDOWS\system32\LogFiles" 'The location of your log files strLogFileSuffix = ".log" 'The suffix of your log files Set ObjFS = CreateObject("Scripting.FileSystemObject") Set ObjTopFolder = ObjFS.GetFolder(strObjTopFolderPath) Set objShell = Wscript.CreateObject("Wscript.Shell") PurgeLogs() Sub PurgeLogs() WriteLog 0,"Purge Logs Script Starting with Root Folder: " & ObjTopFolder.Path For Each ObjLogFolder in ObjTopFolder.SubFolders WriteLog 0,"Purge Logs Script Parsing SubFolder: " & ObjLogFolder.name Set ObjSubFolder = ObjFS.GetFolder(ObjLogFolder) For each ObjLogFile in ObjSubFolder.files On Error Resume Next Err.Clear Set ObjFile = ObjFS.GetFile(ObjLogFile) If datediff("d",ObjFile.DateLastModified,Date()) > intDaysOld and lcase(right(ObjLogFile,4))=strLogFileSuffix then tmpObjFileName = ObjFile.Name '***************************************************** 'DON'T UNCOMMENT THIS UNTIL YOU KNOW IT WORKS PROPERLY!!! 'ObjFile.Delete '***************************************************** If Not Err then WriteLog 8," Purge Logs Script has Deleted SucessFully " & ObjSubFolder.name & "\" & tmpObjFileName Else WriteLog 16,"Purge Logs Script Error While Deleting " & ObjSubFolder.name & "\" & tmpObjFileName End If End If Set ObjFile = nothing Next Set ObjSubFolder = nothing Next Set ObjTopFolder = nothing Set ObjFS = nothing End Sub Sub WriteLog(evType,msg) on error resume next Err.Clear objShell.LogEvent evType, msg End Sub
On: 29/08/2009
About:Automatically delete old IIS log files
Craig
Wrote: Nice one! Was exactly the problem.
On: 17/08/2009