Did you know? #1

Did you know that you can access the content of a provider using the variable syntax?

For instance, you can get and set the contents of a file just by doing the following:
MSH > ${c:\temp\foo.txt} = "bar"
MSH > ${c:\temp\foo.txt}

Note, the default encoding is used when setting the content in the filesystem in this way.

Any provider that supports the IContentCmdletProvider interface can be accessed in this way.

-Jeff Jones

Comments (1)

  1. Kazi says:

    It’s a good feature and the whole Monad philosophy is really brilliant. I’m very impressed.

    A small feature request:

    The Registry provider doesn’t implement the IContentCmdletProvider, so can you implement this in the next release?

Skip to main content