Archives for the 'Windows' Category

Robocopy in lieu of rsync

Perhaps you’re a web developer familiar with Linux and SVN. Then you’ll definitely know how to copy files from your SVN working directory to a test server whilst excluding all .svn directories:
rsync -IrW –stats –exclude=.svn /path/to/project/dir/ //testsrv/whatever
If for some reason your development environment is Windows you might be tempted to use rsync on Cygwin. That’s […]

1 February 2011 | LAMP, Windows | 1 Comment

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 […]

19 February 2010 | Windows | 9 Comments

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 […]

7 August 2009 | Windows | 4 Comments

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 […]

18 February 2008 | Windows | No Comments

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).

10 August 2007 | Windows | 4 Comments