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

get-command and *.txt "applications"

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-11-2007   #1 (permalink)
Andrew Watt [MVP]
Guest


 

get-command and *.txt "applications"

Has anyone else noticed that the get-command cmdlet identifies some of
the PowerShell .txt Help files as "applications". It also does that
for other non-PowerShell .txt files under C:\Windows and subfolders.

Run

get-command *.txt -commandType application | more

and see what I mean.

What's the rationale?

Andrew Watt MVP

My System SpecsSystem Spec
Old 01-11-2007   #2 (permalink)
Andrew Watt [MVP]
Guest


 

Re: get-command and *.txt "applications"

On Thu, 11 Jan 2007 17:38:35 +0000, "Andrew Watt [MVP]"
<SVGDeveloper@aol.com> wrote:

>Has anyone else noticed that the get-command cmdlet identifies some of
>the PowerShell .txt Help files as "applications". It also does that
>for other non-PowerShell .txt files under C:\Windows and subfolders.
>
>Run
>
>get-command *.txt -commandType application | more
>
>and see what I mean.
>
>What's the rationale?
>
>Andrew Watt MVP


Just to add to the quirk.

Try

get-command *.bmp -commandType Application | more

Unexpected. At least by me.

Andrew Watt MVP
My System SpecsSystem Spec
Old 01-11-2007   #3 (permalink)
Sung M Kim
Guest


 

Re: get-command and *.txt "applications"

"Andrew Watt [MVP]" wrote:
> Unexpected. At least by me.

"get-command *.bmp -commandType Application | more"
That seemed surprising in the beginning but after reading through
Get-Command documentation on "CommandType" parameter,

"Application" represents all non-PowerShell files on the system that you can
run within PowerShell, including .txt, .exe. and .dll files in the Windows
PowerShell path.

Displaying *.bmp file just by specifying the BMP file name seems to fall
into the category of "Application" since "BMP" files are
1. "non-PowerShell files"
2. "You can run within PowerShell"
3. "files in the Windows PowerShell path"

But stil.. it is a bit unexpected ;p
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Save as" closes MS Office applications in Vista tsk Vista mail 2 08-30-2008 06:55 AM
Command prompt "COPY" command not working in brand new Windows Vis CMD COPY command not working in Vista Vista file management 7 02-05-2008 03:20 PM
"Open command prompt here" and "Copy as path" Moody Marco Vista performance & maintenance 10 05-04-2007 11:41 AM
Upgrading one of my applications wants "CDSDC.dll"? Imageman Vista installation & setup 1 02-26-2007 10:26 PM
Vista expects Applications in "Program Files" ? MueMeister Vista General 5 11-27-2006 03:15 PM


Update your Vista Drivers Update Your Vista Drivers Now!!

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
Page generated in 0.23908 seconds with 10 queries