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 - Command Line Arguments

Reply
 
Old 12-19-2006   #1 (permalink)
John Smith


 
 

Command Line Arguments

Hi, how are the command line arguments passed to a PS1 script?

I see the Primer and the Getting Started guides. Where can I find the
reference manual?

How do I have additional fonts for the shell? The Lucida font displays some
Unicode characters like Greek but not Asian characters. The raster font is
only ASCII.

Thanks in advance

My System SpecsSystem Spec
Old 12-20-2006   #2 (permalink)
Jeffrey Snover [MSFT]


 
 

Re: Command Line Arguments

Argments are assigned to those parameters defined using a PARAM statuement
and the remaining parameters are defined to $ARGS
--
Jeffrey Snover [MSFT]
Windows PowerShell Architect
Microsoft Corporation
This posting is provided "AS IS" with no warranties, no confers rights.


My System SpecsSystem Spec
Old 12-20-2006   #3 (permalink)
RichS


 
 

Re: Command Line Arguments

Theres a good article on adding extra fonts to the shell on the PowerShell
team blog

http://blogs.msdn.com/powershell/arc...omization.aspx


--
Richard Siddaway

Please note that all scripts are supplied "as is" and with no warranty


"Jeffrey Snover [MSFT]" wrote:

> Argments are assigned to those parameters defined using a PARAM statuement
> and the remaining parameters are defined to $ARGS
> --
> Jeffrey Snover [MSFT]
> Windows PowerShell Architect
> Microsoft Corporation
> This posting is provided "AS IS" with no warranties, no confers rights.
>
>

My System SpecsSystem Spec
Old 12-20-2006   #4 (permalink)
Keith Hill [MVP]


 
 

Re: Command Line Arguments

"RichS" <RichS@discussions.microsoft.com> wrote in message
news:3077D6CC-6949-424A-8175-35BA89320160@microsoft.com...
> Theres a good article on adding extra fonts to the shell on the PowerShell
> team blog
>
> http://blogs.msdn.com/powershell/arc...omization.aspx


Speaking of which, I love the Consolas font and I use it in Visual Studio
and in the console. The only bummer with Consolas is that it doesn't sport
any of the line drawing glyphs that Lucida Console or Courier New has. Does
anybody know if there is an easy way to create a font by taking the line
drawing characters from Lucida Console and slapping them in at the same spot
in the Consolas font. I'd probably call this new font "Consolas Console".
:-)

--
Keith


My System SpecsSystem Spec
Old 12-20-2006   #5 (permalink)
John Smith


 
 

Re: Command Line Arguments

> Argments are assigned to those parameters defined using a PARAM statement
> and the remaining parameters are defined to $ARGS


Sorry, this is too cryptic for me. I trialed and errored, and it appears
that command line paramenters to a PS1 script are passed via an array $args,
each "string" in one element. I am just playing with positional parameters
at this time. Haven't gotten around to keyed parameters yet.
My System SpecsSystem Spec
Old 12-20-2006   #6 (permalink)
John Smith


 
 

Re: Command Line Arguments

Thank you very much.

"RichS" wrote:

> Theres a good article on adding extra fonts to the shell on the PowerShell
> team blog
>
> http://blogs.msdn.com/powershell/arc...omization.aspx
>
>
> --
> Richard Siddaway
>
> Please note that all scripts are supplied "as is" and with no warranty
>
>

My System SpecsSystem Spec
Old 12-20-2006   #7 (permalink)
John Smith


 
 

Re: Command Line Arguments

Unfortunately that is for the various versions of Windows 2000 only. I am on
XP.

"Keith Hill [MVP]" wrote:

> "RichS" <RichS@discussions.microsoft.com> wrote in message
> news:3077D6CC-6949-424A-8175-35BA89320160@microsoft.com...
> > Theres a good article on adding extra fonts to the shell on the PowerShell
> > team blog
> >
> > http://blogs.msdn.com/powershell/arc...omization.aspx

>
> Speaking of which, I love the Consolas font and I use it in Visual Studio
> and in the console. The only bummer with Consolas is that it doesn't sport
> any of the line drawing glyphs that Lucida Console or Courier New has. Does
> anybody know if there is an easy way to create a font by taking the line
> drawing characters from Lucida Console and slapping them in at the same spot
> in the Consolas font. I'd probably call this new font "Consolas Console".
> :-)
>
> --
> Keith
>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Passing arguments to external command through PS PowerShell
problem with command line arguments PowerShell
Invalid Command Line arguments??? Vista General
Parsing command line arguments PowerShell
Getting arguments from STDIN when command line arguments are missing PowerShell


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