Archives for the 'Windows' Category
WER folder eating up disk space on Windows Server 2008
My ASP.NET app, running on Windows Server 2008, suddenly died:
Could not load file or assembly ‘Coolite.Ext.Web’ or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0×80070070)
So I dug around and found that C:\ProgramData\Microsoft\Windows\WER\ReportQueue was taking up GBs upon GBs of space. A rudimentary google showed that this is […]
DOS command to wait or sleep
You’re working with batch files on Windows. How to wait or sleep for 2 seconds?
Well, I know of no direct command to do so, but this is certainly quite an elegant way to do it:
PING 127.0.0.1 -n 3 > NUL
If you wish for the batch process to wait longer, just replace the 3 with […]
Offline Shared Folder
Today is the first day of .NET 2.0 (Visual Studio 2005) training.
I learnt that you could make a shared folder work offline by pointing its drive letter to a local path (basically, faking it). The DOS command for it is subst. Example usage: subst x: c:\data. Of course, for this to work, you must first […]
Checking the Version of IIS
To check the version of IIS on your Windows machine, click Start -> Run and type inetmgr.
The IIS version number will be in the right pane (e.g., IIS V6.0).
Windows XP: Launch the Add Printer Wizard from the Command Line
Why would anyone want to launch the Add Printer Wizard from the command line? Wouldn’t it be easier to just click Start –> Control Panel –> Printers and Faxes –> Add a printer? Well, not if you’re logged in as a user without administrative privileges, and you can’t click Start –> Log Off […]
