Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

"Edit" in the context menu for sp1 files

Closed Thread
 
Thread Tools Display Modes
Old 07-10-2007   #1 (permalink)
Dan
Guest


 

"Edit" in the context menu for sp1 files

I am using Windows PowerShell in Vista Ultimate x64.
I would expect the context menu for sp1 files to have both OPEN (=run) and
EDIT (with Notepad) items. It only has OPEN.

How could I open the file for edit other than dragging it to the Notepad
icon on the desktop?

Thanks,

Old 07-10-2007   #2 (permalink)
Dmitry Sotnikov
Guest


 

RE: "Edit" in the context menu for sp1 files

Actually, by default OPEN does indeed open ps1 files in Notepad. So
double-click does what you want - starts Notepad.

There's no default way to start ps1 files from Windows Explorer shortcut
menu. You have to either open while inside the PowerShell console or use the
PowerShell executable in a command-line and pass the script path as a
parameter.

--
Dmitry Sotnikov
http://dmitrysotnikov.wordpress.com


"Dan" wrote:

> I am using Windows PowerShell in Vista Ultimate x64.
> I would expect the context menu for sp1 files to have both OPEN (=run) and
> EDIT (with Notepad) items. It only has OPEN.
>
> How could I open the file for edit other than dragging it to the Notepad
> icon on the desktop?
>
> Thanks,
>

Old 07-10-2007   #3 (permalink)
Dan
Guest


 

RE: "Edit" in the context menu for sp1 files

Thank you very much Dmitry!

"Dmitry Sotnikov" wrote:

> Actually, by default OPEN does indeed open ps1 files in Notepad. So
> double-click does what you want - starts Notepad.
>
> There's no default way to start ps1 files from Windows Explorer shortcut
> menu. You have to either open while inside the PowerShell console or use the
> PowerShell executable in a command-line and pass the script path as a
> parameter.
>
> --
> Dmitry Sotnikov
> http://dmitrysotnikov.wordpress.com
>
>
> "Dan" wrote:
>
> > I am using Windows PowerShell in Vista Ultimate x64.
> > I would expect the context menu for sp1 files to have both OPEN (=run) and
> > EDIT (with Notepad) items. It only has OPEN.
> >
> > How could I open the file for edit other than dragging it to the Notepad
> > icon on the desktop?
> >
> > Thanks,
> >

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove "Restore previous versions" from my context menu? vaderag General Discussion 2 04-19-2008 10:27 AM
Start Menu "right" click context menu vegaspat Vista General 1 01-16-2008 08:19 AM
Open IME" & "Reconversion" option on context menu, How do I remove RHPT Vista General 0 01-12-2008 07:46 PM
Remove entries from the "new" file context menu? Hans Vista General 2 07-22-2007 03:02 PM
No more "Send to mail recipient" in context menu! HrundiBakshi Vista General 6 05-31-2007 05:12 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50