Re: Random psh stuff.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



William Stacey [MVP] wrote:
1) Powersh.exe used in places in the docs. Should be Powershell.exe I guess.

2) Microsoft.PowerShell_Profile.ps1 - Could that be any longer?

3) "The profile Microsoft.PowerShell_profile.ps1 will only be run for the shell with the matching ShellID..."
What does this mean in practice? What is the actual difference between profile.ps1 and MS.powershell_profile.ps1?

4) In cmd.exe I can "cd\" or "cd\temp", but in ps I need a space like "cd \" or "cd \temp". Would this break too much to allow no space?

tia

for point 4 I made some functions, as was also used to cd..

function cd.. {cd ..}

another one I often use

MowPS>gc function:start.
(new-object -com shell.application).Explore((pwd).tostring())

(it was open first till I did see that ii . does the same)


this will not help when typing a path like that

gr /\/\o\/\/
.



Relevant Pages

  • Random psh stuff.
    ... shell with the matching ShellID..." ... William Stacey [MVP] ...
    (microsoft.public.windows.server.scripting)
  • Re: Outlook 2007 connection problems
    ... Disable all your add-ins and try with a clean mail profile. ... Milly Staples [MVP - Outlook] ... | I have Exchange 2003 with the last service pack. ...
    (microsoft.public.office.misc)
  • Re: Random psh stuff.
    ... The PowerShell model supports the concept of multiple shells. ... the PowerShell.exe console application is the main shell. ... you would use the $profile variable. ... Current user profile is loaded from "<My ...
    (microsoft.public.windows.server.scripting)
  • Re: Cant Open File & Tools Menus!
    ... Word MVP FAQ site: http://word.mvps.org ... >>> Any user with a new profile that opens Word for the first time is ... >>> open the File or Tools menus, no dropdown menu appears, all other ... >>> problem happens on new office installs, old installs, installs with ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: Add to $PATH how?
    ... are sourced at the start of a "login" shell. ... the idea is that the .profile holds things that need doing exactly ... processes this need only happen once, and fresh interactive shells do ...
    (Fedora)