Monday, September 8, 2008

How to load a txt file using notepad in powershell scripts?

function hosts
{
[System.Diagnostics.Process]::Start('notepad.exe', 'C:\Windows\System32\drivers\etc\hosts');
}

no alias needed.

No comments: