Welcome to MSDN Blogs Sign in | Join | Help

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}
bar
MSH >

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

Published Thursday, August 25, 2005 8:40 PM by arulk

Comments

New Comments to this post are disabled
 
Page view tracker