søndag den 25. oktober 2009

Windows 7 stuff

I have been running Windows 7 RC for a couple of months, before the official release of the product. So far I have been very pleased, except for one thing, but that’s a different story. But just tripped over this page with 77 interesting things you can do with Windows 7. For supporters a new tool “Problems Step Recorder” lets the user run through a trouble’ish flow and screen-dumps with information are recorded and saved. The supporter have then possibility to see what actual happens. Nice. But check out all the nice stuff here: http://technet.microsoft.com/en-us/magazine/2009.10.77windows.aspx

Technorati Tags:

onsdag den 7. oktober 2009

Powershell Batch Files Rename

I needed to rename a bunch of files, all starting with “POD_”. I wanted to remove the “POD_” from every file. In my eager to learn Powershell this was a good opportunity to launch the Powershell ISE. After a short Google Search this made my life more Powershellish:

dir -filter "POD_*" |
rename-item -newname { $_.name -replace "POD_*", ""}

The “dir –filter “POD_*” command locates all files. These are piped to the rename-item cmdlet. Using the “-newname” param and some regular-expression, the files are renamed as wanted

Running 32-bit VBScript on a 64-bit server

Had a issue with running a Vbscript which made calls to 32-bit COM objects. First view assumed that the COM objects were not registered correctly. But on a 64-bit platform (windows that is), 32-bit and 64-bit COM objects are registered in the reg-database in 2 seperate nodes. So running regdllview-64 bit did not show the needed com-objects, leading to suspicion that the files was not correctly installed. But running the 32-bit version of regdllview showed the files, so everything should be ok. This lead to the assumption that when triggering the vbscript, the 64-bit Windows Script Host Engine was triggered instead of the 32-bit version. On 64-bit Windows the folder [\<windowsdir>\sysWoW64] contains 32-bit versions of equivalent 64-bit files found in [\<windowsdir>\system32].

tirsdag den 9. juni 2009

Using Live Writer with Windows 7

It’s pretty slick using Live Writer to apply new entries on the Blog. I don’t know weather it’s more fancy to use Live Writer on Win7 than on other platforms?

mandag den 5. november 2007

NUnitAsp

En søgen efter unit-test af asp.net applikationer, faldt jeg over nunitsp, som kan anvendes til dette formål. Og det giver en rigtig rar fornemmelse at det kode som er blevet til, nu også holder i længden