{"id":9461,"date":"2006-10-21T00:13:00","date_gmt":"2006-10-21T00:13:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/10\/21\/power-and-pith\/"},"modified":"2019-02-18T13:21:14","modified_gmt":"2019-02-18T20:21:14","slug":"power-and-pith","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/power-and-pith\/","title":{"rendered":"Power and Pith"},"content":{"rendered":"<p><!--\n \/* Font Definitions *\/\n @font-face\n\t{font-family:\"Cambria Math\";\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\n@font-face\n\t{font-family:\"Lucida Console\";\n\tpanose-1:2 11 6 9 4 5 4 2 2 4;}\n@font-face\n\t{font-family:\"Arial Black\";\n\tpanose-1:2 11 10 4 2 1 2 2 2 4;}\n \/* Style Definitions *\/\n p.MsoNormal, li.MsoNormal, div.MsoNormal\n\t{margin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:0in;\n\tline-height:115%;\n\tfont-size:11.0pt;\n\tfont-family:\"Lucida Console\";}\nh1\n\t{mso-style-link:\"Heading 1 Char\";\n\tmargin-top:24.0pt;\n\tmargin-right:0in;\n\tmargin-bottom:0in;\n\tmargin-left:0in;\n\tmargin-bottom:.0001pt;\n\tline-height:115%;\n\tpage-break-after:avoid;\n\tfont-size:14.0pt;\n\tfont-family:\"Lucida Console\";\n\tcolor:#365F91;}\na:link, span.MsoHyperlink\n\t{color:blue;\n\ttext-decoration:underline;}\na:visited, span.MsoHyperlinkFollowed\n\t{color:purple;\n\ttext-decoration:underline;}\np.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph\n\t{margin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:.5in;\n\tline-height:115%;\n\tfont-size:11.0pt;\n\tfont-family:\"Lucida Console\";}\nspan.Heading1Char\n\t{mso-style-name:\"Heading 1 Char\";\n\tmso-style-link:\"Heading 1\";\n\tfont-family:\"Lucida Console\";\n\tcolor:#365F91;\n\tfont-weight:bold;}\np.msolistparagraphcxspfirst, li.msolistparagraphcxspfirst, div.msolistparagraphcxspfirst\n\t{mso-style-name:msolistparagraphcxspfirst;\n\tmargin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:0in;\n\tmargin-left:.5in;\n\tmargin-bottom:.0001pt;\n\tline-height:115%;\n\tfont-size:11.0pt;\n\tfont-family:\"Lucida Console\";}\np.msolistparagraphcxspmiddle, li.msolistparagraphcxspmiddle, div.msolistparagraphcxspmiddle\n\t{mso-style-name:msolistparagraphcxspmiddle;\n\tmargin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:0in;\n\tmargin-left:.5in;\n\tmargin-bottom:.0001pt;\n\tline-height:115%;\n\tfont-size:11.0pt;\n\tfont-family:\"Lucida Console\";}\np.msolistparagraphcxsplast, li.msolistparagraphcxsplast, div.msolistparagraphcxsplast\n\t{mso-style-name:msolistparagraphcxsplast;\n\tmargin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:.5in;\n\tline-height:115%;\n\tfont-size:11.0pt;\n\tfont-family:\"Lucida Console\";}\nspan.JotestChar\n\t{mso-style-name:\"Jo test Char\";\n\tmso-style-link:\"Jo test\";\n\tfont-family:\"Arial Black\",\"sans-serif\";\n\tbackground:#BFBFBF;\n\tfont-weight:bold;}\np.Jotest, li.Jotest, div.Jotest\n\t{mso-style-name:\"Jo test\";\n\tmso-style-link:\"Jo test Char\";\n\tmargin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:.5in;\n\tline-height:115%;\n\tbackground:#BFBFBF;\n\tfont-size:10.0pt;\n\tfont-family:\"Arial Black\",\"sans-serif\";\n\tfont-weight:bold;}\nspan.CodeChar\n\t{mso-style-name:\"Code Char\";\n\tmso-style-link:Code;\n\tcolor:#EEEDF0;\n\tbackground:#012456;}\np.Code, li.Code, div.Code\n\t{mso-style-name:Code;\n\tmso-style-link:\"Code Char\";\n\tmargin-top:0in;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:.5in;\n\tline-height:115%;\n\tbackground:#012456;\n\tfont-size:10.0pt;\n\tfont-family:\"Lucida Console\";\n\tcolor:#EEEDF0;}\np.msopapdefault, li.msopapdefault, div.msopapdefault\n\t{mso-style-name:msopapdefault;\n\tmargin-right:0in;\n\tmargin-bottom:10.0pt;\n\tmargin-left:0in;\n\tline-height:115%;\n\tfont-size:12.0pt;\n\tfont-family:\"Times New Roman\",\"serif\";}\n.MsoChpDefault\n\t{font-size:10.0pt;}\n.MsoPapDefault\n\t{margin-bottom:10.0pt;\n\tline-height:115%;}\n@page Section1\n\t{size:8.5in 11.0in;\n\tmargin:1.0in 1.0in 1.0in 1.0in;}\ndiv.Section1\n\t{page:Section1;}\n--><\/p>\n<div class=\"Section1\">\n<p class=\"MsoNormal\"><span>In our newsgroup, Benny asked the question, \u201cHow to get subdir items with full path name?\u201d<\/span><\/p>\n<p class=\"MsoNormal\"><span>ClaudioG64 responded:<\/span><\/p>\n<p class=\"Code\">PS&gt; get-childitem C:\\ | foreach-object -process { $_.FullName }<\/p>\n<p class=\"MsoNormal\"><span>Dreeschkind replied that we had pithier ways of doing it posting:<\/span><\/p>\n<p class=\"Code\">PS&gt; gci C:\\ | % { $_.FullName }<\/p>\n<p class=\"MsoNormal\"><span>It was at this point that I realized that many of you don\u2019t have a function that many of us in the team use.&nbsp; So put your seatbelts on and try this one out:<\/span><\/p>\n<p class=\"Code\">PS&gt; ${function:&#8230;} = { process { $_.($args[0]) } }<br \/>PS&gt; gci c:\\ | \u2026 FullName<\/p>\n<p class=\"MsoNormal\"><span>With Windows PowerShell, you can be Powerful and Pithy!<\/span><\/p>\n<p class=\"MsoNormal\"><span>Enjoy<\/span><\/p>\n<p class=\"MsoNormal\"><span>Jeffrey Snover [MSFT]<br \/>Windows PowerShell\/MMC Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In our newsgroup, Benny asked the question, \u201cHow to get subdir items with full path name?\u201d ClaudioG64 responded: PS&gt; get-childitem C:\\ | foreach-object -process { $_.FullName } Dreeschkind replied that we had pithier ways of doing it posting: PS&gt; gci C:\\ | % { $_.FullName } It was at this point that I realized that [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>In our newsgroup, Benny asked the question, \u201cHow to get subdir items with full path name?\u201d ClaudioG64 responded: PS&gt; get-childitem C:\\ | foreach-object -process { $_.FullName } Dreeschkind replied that we had pithier ways of doing it posting: PS&gt; gci C:\\ | % { $_.FullName } It was at this point that I realized that [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=9461"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=9461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=9461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=9461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}