/\/\o\/\/ PowerShelled

This blog has moved to http://ThePowerShellGuy.com Greetings /\/\o\/\/
$AtomFeed = ("Atom.xml")
$PreviousItems = (" Argggg "," Where are my pipelines "," WMI help Part 3 (Methods) "," WMI help Part 2 "," Wmi-Help Part 1 "," Create System Variable From MSH (Part2) "," Create System Variable From MSH "," Setting the Path / system variables from MSH "," Obfuscated Monad Script "," Get Binary SID in MSH (Share Security Update) "," ")

Monday, November 07, 2005

 


MSH start. Function



As I'm testing linebreaks in my code,

maybe this makes it a bit usefull,


Function Start. {
$Shell = new-object -com shell.application
$shell.Explore((pwd).tostring())
}

Starts an explorer in the current directory

gr /\/\o\/\/

PS This could be a one-liner but I hope the lines break ;-)


Comments:
Blogger Sung Meister
I have put a bit of modified version on my "profile.msh"

function startHere {
param([string] $dir = (pwd).path)
$sh = new-object -com shell.application
$sh.explore($dir)
}

I think it's better to give myself a choice which folder to open... :)
 
Blogger /\/\o\/\/
ii . or ii c:\ will work also,
as was tipped in the newsgroup ;-)
 
Blogger Sung Meister
Hey, but i think it's better to have the "folder" navigation pane open instead...

Gosh, never knew about "ii"...
I will make sure to check newsgroup when i get home :)
 
Post a Comment



<< Home

Archives

October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006  

$Links = ("PowerShell RC1 Docs"," PowerShell RC1 X86"," PowerShell RC1 X64"," Monad GettingStarted guide"," Monad Progamming Guide"," Monad SDK"," Monad videos on Channel 9"," MSH Community Workspace"," scripts.readify.net "," MonadSource"," www.reskit.net"," PowerShell Blog"," Under The Stairs"," computerperformance powershell Home"," proudlyserving"," MSH on wikipedia"," MSHWiki Channel 9"," Keith Hill's Blog"," Precision Computing"," PowerShell for fun"," MSH Memo (Japanese)"," monadblog")

find-blog -about "PowerShell","Monad" | out-Technorati.
find-blog -contains "","" | out-Technorati.
Google
 
Web mow001.blogspot.com

This page is powered by Blogger. Isn't yours?