Thursday, February 22, 2007


I am just getting started with Powershell, and I found that you can "cat", "clear", and "ls" just like in a Unix shell. You can pipe stuff (from here):

ls | out-file "dir-listing.txt" (where out-file is a cmdlet)

The above will output a file listing, and the out-file cmdlet will write that to a file called "dir-listing.txt" in the current directory.

"cat dir-listing.txt" to check file contents.

You can download powershell from here.