Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - clr the editor?

Reply
 
Old 04-18-2007   #1 (permalink)
9-11 Was An Inside Job


 
 

clr the editor?

Hmmm? clr not supported?

Also discovered a bug when entering...

c:\>cmd clr

Leaves the PowerShell open but no commands will run. The exit command has to
be submitted twice.



My System SpecsSystem Spec
Old 04-18-2007   #2 (permalink)
forestial


 
 

RE: clr the editor?

What you need is 'clear-host'. An alias 'clear' is defined for this. If you
want to type 'clr' then put

set-alias clr clear-host

in your $profile.

On my system 'cmd clr' runs a cmd.exe shell and leaves it at the cmd.exe
prompt (it doesn't clear the contents of the powershell window, which seems
reasonable). If I type 'exit' once I am back in powershell. So I am not
seeing a bug here.

"9-11 Was An Inside Job" wrote:

> Hmmm? clr not supported?
>
> Also discovered a bug when entering...
>
> c:\>cmd clr
>
> Leaves the PowerShell open but no commands will run. The exit command has to
> be submitted twice.
>
>
>

My System SpecsSystem Spec
Old 04-19-2007   #3 (permalink)
clintonG


 
 

Re: clr the editor?

Hello,

Thanks for your comments. The behavior of typing clr is unexpected so it
certainly seemed like a type of bug or unhandled exception at the very
least.

I spent the early part of the evening reading the Word documents that have
been distributed as documentation. There certainly seems to be a need (and
opportunity) for tools and reference works built using HTTP to help work
through the syntax and grammar eh? One idea that came to mind was a method
to contextually load the MSDN documentation from within the shell.

The $profile (which I still haven't read yet) is the place to start though
and IMO should be the first chapter in the documentation so thanks for
bringing this to my attention.

One last note, have you noticed F7 does not support the use of Tab which
will take the last commands out of the buffer and put a selected command
onto the command line for modification if and when needed before using Enter
to submit?

"forestial" <forestial@discussions.microsoft.com> wrote in message
news:3D8A2E00-68BF-4283-A89D-6E25F9CE13A8@microsoft.com...
> What you need is 'clear-host'. An alias 'clear' is defined for this. If
> you
> want to type 'clr' then put
>
> set-alias clr clear-host
>
> in your $profile.
>
> On my system 'cmd clr' runs a cmd.exe shell and leaves it at the cmd.exe
> prompt (it doesn't clear the contents of the powershell window, which
> seems
> reasonable). If I type 'exit' once I am back in powershell. So I am
> not
> seeing a bug here.
>
> "9-11 Was An Inside Job" wrote:
>
>> Hmmm? clr not supported?
>>
>> Also discovered a bug when entering...
>>
>> c:\>cmd clr
>>
>> Leaves the PowerShell open but no commands will run. The exit command has
>> to
>> be submitted twice.
>>
>>
>>



My System SpecsSystem Spec
Old 04-19-2007   #4 (permalink)
clintonG


 
 

Re: clr the editor?

Skip it... Just tried hacking it and discovered using F7 can be followed by
F9 which presents a dialog asking for the list item number of the command
wanted to be placed on the command line...


"forestial" <forestial@discussions.microsoft.com> wrote in message
news:3D8A2E00-68BF-4283-A89D-6E25F9CE13A8@microsoft.com...
> What you need is 'clear-host'. An alias 'clear' is defined for this. If
> you
> want to type 'clr' then put
>
> set-alias clr clear-host
>
> in your $profile.
>
> On my system 'cmd clr' runs a cmd.exe shell and leaves it at the cmd.exe
> prompt (it doesn't clear the contents of the powershell window, which
> seems
> reasonable). If I type 'exit' once I am back in powershell. So I am
> not
> seeing a bug here.
>
> "9-11 Was An Inside Job" wrote:
>
>> Hmmm? clr not supported?
>>
>> Also discovered a bug when entering...
>>
>> c:\>cmd clr
>>
>> Leaves the PowerShell open but no commands will run. The exit command has
>> to
>> be submitted twice.
>>
>>
>>



My System SpecsSystem Spec
Old 04-24-2007   #5 (permalink)
June Blender (MSFT)


 
 

RE: clr the editor?

"cls" works, too, although I know that it's hard to change habits. As the
previous poster said, just create an alias in your profile for any familiar
commands.

When you type "cmd", you exit Windows PowerShell and host a cmd.exe session
in the PowerShell window.

Unfortunately, cmd.exe doesn't support clr either.

To return to Windows PowerShell, type "exit".




--
June Blender [MSFT]
Windows PowerShell Documentation
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.



"9-11 Was An Inside Job" wrote:

> Hmmm? clr not supported?
>
> Also discovered a bug when entering...
>
> c:\>cmd clr
>
> Leaves the PowerShell open but no commands will run. The exit command has to
> be submitted twice.
>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
WLM editor Live Mail
Editor VB Script
How do I change to Outlook editor, and not the Winword editor in Vista Vista mail
Vista 64-"Sandbox 2 editor has Stopped working"- when importing files to editor. Gaming
DVD editor Vista music pictures video


Vista Forums 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 Ltd

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