Browse by Tags

All Tags » .NET (RSS)

Returning an exit code from a PowerShell script by svdoever

Returning an exit code from a PowerShell script seems easy… but it isn’t that obvious. In this blog post I will show you an approach that works for PowerShell scripts that can be called from both PowerShell and batch scripts, where the command to be executed...
Filed under: , no longer usable as a blogging platform? by svdoever

I get swamped by spam on my weblog. Both comments spam and spam through the contact form. It is getting so bad that I think the platform is becoming useless for me. Why o why are we bloggers from the first hour still in stone age without...
Filed under: ,

Powershell output capturing and text wrapping… again… by svdoever

A while a go I wrote a post “ Powershell output capturing and text wrapping: strange quirks... solved! ” on preventing output wrapping in PowerShell when capturing the output. In this article I wrote that I used the following way to capture the output...
Filed under: ,

Debugging executing program from PowerShell using EchoArgs.exe by svdoever

Sometimes you pull you hairs out because the execution of a command just does not seem to work the way you want from PowerShell. A good example of this is the following case: Given a folder on the filesystem, I want to determine if the folder is under...
Filed under: ,

Visual Studio: alway run as administrator by svdoever

I’m currently developing on a 64 bit Windows Server 2008 R2 that is domain joined, so I log in with my domain account and user access control is enabled. I need to run my Visual Studio as an administrator, because otherwise I get all kind of errors. I...
Filed under: ,

Microsoft Virtual labs - getting the lab notes directly by svdoever

Microsoft has great virtual labs available, but it takes some time to get in there. If you just want the lab notes, type the following in Google: filetype:pdf or just follow this link .
Filed under:

Debugging SharePoint/ASP.NET code? Smart key-codes + disable timeout! by svdoever

I'm currently running around in the Visual Studio debugger to debug some complex SharePoint code. There are two things really annoy me: all the mouse-clicks needed to attach to the Internet Information Server process and the time-out you get when you...
Filed under: , ,

LiveWriter finally working again with my blog! by svdoever

Thanks to Joe Cheng who was so kind to respond to my previous post on the topic I finally have LiveWriter working again against my blog. The metablog handler needs to be: In the past this was:
Filed under:

Help: Windows LiveWriter not working anymore against by svdoever

I almost stopped blogging because Windows Livewriter stopped working against my account on three different platforms. I get the following error when trying to post with LiveWriter: The response to the metaWeblog.newPost method received...
Filed under:

PowerShell: Return values from a function through reference parameters by svdoever

PowerShell has a special [ref] keyword to specify which parameters are used in a fuction to return values. It's usage is not directly clear however. If the type of the variable to update is a value type, use the [ref] keyword in the declaration of the...
Filed under: ,
More Posts Next page »