Well this is interesting. I guess learning C# wasn't to much of waste of my time after all. :)
Of course learning msh doesn't look easy. I know unix/linux very well, but some of these commands are like actual functins. I guess I would have to get use to some of these weird commandline options. But on the good side it's similar to python, so I have some experience there at least.
Example from the website where the shell is given a string and is
piped to the function get-member and returns all the attributes and methods within
MSH that can deal with the string:
msh> "this is a test" | get-member
TypeName: System.String
Name MemberType Definition
---- ---------- ----------
Clone Method Object Clone()
CompareTo Method Int32 CompareTo(Object value), Int32 CompareTo(S...
Contains Method Boolean Contains(String value)
CopyTo Method Void CopyTo(Int32 sourceIndex, Char[] destinatio...
EndsWith Method Boolean EndsWith(String value), Boolean EndsWith...
Equals Method Boolean Equals(Object obj), Boolean Equals(Strin...
get_Chars Method Char get_Chars(Int32 index)
get_Length Method Int32 get_Length()
...
http://arstechnica.com/guides/other/msh.ars
Tuesday, October 25, 2005
Microsoft Command Shell
Posted by William Andrus at Tuesday, October 25, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment