|
|
[sidebar: while i guess i could somehow use 'format-list' to convert the tab-separated list into a html table... i instead used the world's simplest code generator which got the job done quick n easy, like always.
Okay so before I go anyfurther I should pass along this other rule:
cmdLets', not commandsYou got that?
Okay i decided i'd like to read some more built in help. I've heard that PowerShell has excellent built in help. But how to get it?
It turns out that 'help' is an alias for
'Get-Help' (the unix-friendly 'man' command
also works as an alias for 'Get-Help')
First observation with running these help commands is that the text often scrolls off the screen.
Running help on help (Help -?) tells me this:
"Get-help" and "-?" display help on one page. i.e. they scroll off the screen! "Help" displays help on multiple pages. i.e. you get this after every screenful: "<SPACE> next page; <CR> next line; Q quit"
Another great tip in the help about help is to try this:
get-help *
because:
This lists every help file in the system along with what type of help it is
So, now I've got hundreds of help topics at my fingertips... too many to read and remember in one go. [At this point i went off and wrote 'ShinyPower']
Best of all i know that this 'Get-Help' command is a general way in to the help system.
At this point i've learnt enough simple things that I'm not too afraid of it anymore. I can starting running around in it and really trying things out.
I'll write more about it when i get a chance.
'Farmer Jeb' on Wed, 12 Jul 2006 08:35:18 GMT, sez:
Cool!
'Jonno Downes' on Wed, 12 Jul 2006 09:04:13 GMT, sez:
The world's simplest code generator is pretty nifty, but there's also
the 'ConvertTo-HTML' cmdlet
e.g. to get a html table of aliases, try:
alias | ConvertTo-HTML Definition,Name
And I have a little snippet showing how to actually pop up IE to display the resulting HTML at http://blog.jamtronix.com/2006/07/rendering_html_from_monad.html
'lb' on Thu, 13 Jul 2006 22:01:44 GMT, sez:
brilliant stuff jonno -- i'd read that post of yours but hadn't worked out how to use it very well.
also -- i just noticed the typo in the title of this article:
"An Abolute Beginner's..."
domestic blindness...
lb
'C-J Berg' on Mon, 31 Jul 2006 19:37:16 GMT, sez:
You might want to add these functions and aliases to your profile. It helps old fogies like myself, who are used to CMD.EXE.
# Map "cd.." to "cd .." for convenience
function SetLocationToParent {
Set-Location ..
}
Set-Alias cd.. SetLocationToParent
# Map "cd\" and "cd/" to "cd \" for convenience
function SetLocationToRoot {
Set-Location \
}
Set-Alias cd\ SetLocationToRoot
Set-Alias cd/ SetLocationToRoot
'lb' on Mon, 31 Jul 2006 20:28:12 GMT, sez:
i like your approach here C-J!
i've got a follow up article about profiles... might put this in.
cheers
lb
'Alphonse' on Tue, 19 Sep 2006 23:32:47 GMT, sez:
DOS and hacker are words that do not fit together.
'lb' on Tue, 19 Sep 2006 23:55:22 GMT, sez:
'alphonse' and 'arrogant' seem to go nicely though ;-)
'UntilTheShout' on Sun, 24 Sep 2006 12:08:40 GMT, sez:
Abolute or should it be Absolute?
'blaaaaa' on Fri, 23 Feb 2007 19:39:19 GMT, sez:
No info here.
old old.. and Powershell so much more powerful than some dir-commands ;P
'lb' on Fri, 23 Feb 2007 19:46:00 GMT, sez:
hey 'blaaaaa' -- yes powershell is much more powerful than what we've done in this article... but this is called 'an absolute beginner's baby steps in powershell' ... so you shouldn't expect it to do anything other than take very very small and awkward steps...
'Nabizzle' on Wed, 11 Apr 2007 17:26:35 GMT, sez:
Agreed. I just installed Powershell, and was looking for something interesting to read that had some info in it. Besides, it is always good to look at how someone else learns something to improve your techniques.
'Jay' on Wed, 19 Sep 2007 14:46:46 GMT, sez:
nice job!
could you pls refer some pages where i can get the basic steps fro scripting since i'm very new on scripting
'MDH' on Thu, 18 Oct 2007 19:30:10 GMT, sez:
Nice! Thanks for intro info. Make more, please.
'Buddaman' on Thu, 24 Apr 2008 12:23:30 GMT, sez:
Great Info, Can you post more on basic scripting with powershell, i am a newbee and don't know much, but i know i luv it ;-) - how 2's etc pls..
Add your comment.
4 Types of Person (a guide to stupidity)
baby steps in microsoft robotics studio...
Hang in there, little buddy
Worst. Bug. Ever.
IT Industry Revolutionised By Labour Saving Device
An Open, Federated Award Ceremony
3 differences between 'Small Business' and 'Enterprise'
How important is the problem of whether or not P=NP?
TimeSnapper hits the local press... and more on Iceland
MVC Zen Garden
Is Corporate IT a form of emotional abuse?
Java Powered Internet? WTF?
Life is Upstream
TimeSnapper 3.3, and News From Iceland
Growing Up Geek (A Hanselmeme)
Is that all you've got!?
TimeSnapper 3.2: What are you afraid of?
Babbage and Boole!
Downloadable Slide-decks: "Build your own Tiny Software Company"/"F# eye for the C# guy"
Simple Trouble Shooting Application Now Fixes Everything
a simple checklist for trouble-shooting regular problems
secretGeek at Tech-Ed: "How to build your own Tiny Software Company"
Bambrick versus Hanselman: Bring it!
.: secretGeek :: Complete Archives
TimeSnapper.com
NextAction
World's Simplest Code Generator
25 steps for building a Micro-ISV
3 Minute Guide Series
Top 10 SecretGeek articles
ShinyPower
Gradient Maker
How to be depressed
You are not inadequate.
The Best Software Writing I
The Business Of Software (Eric Sink)
Jeff Atwood
Reginald Braithwaite
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Joel Pobar
Eric Sink
Joel Spolsky
Des Traynor
programming.reddit.com
dzone
dot net kicks
interesting finds
a continuous learner's weblog
arjan's world
n links today
new and notable
morning coffee
learning .net
weekly link post
(my del.icio.us account)