Solving PowerShell Argument Input Errors with WRAPPER SCRIPTS.

Uloženo v:
Podrobná bibliografie
Název: Solving PowerShell Argument Input Errors with WRAPPER SCRIPTS.
Autoři: Angelopoulos, Alex K.
Zdroj: Windows IT Pro; Jan2010, Vol. 16 Issue 1, p45-48, 4p, 2 Color Photographs
Témata: COMPUTER file sharing, DATA transmission systems, WINDOWS PowerShell (Computer program language), SCRIPTING languages (Computer science), COMMAND languages (Computer science)
Abstrakt: The article discusses how to correctly pass data containing embedded spaces into Windows PowerShell scripts. It explains the use of a Windows Script Host (WHS) batch-file wrapper to address stripping double quotes and to pass correctly arguments that need to be enclosed in double quotes to PowerShell scripts. It also describes how to turn arguments into PowerShell 1.0 input and cites the alternative string parsing technique being provided by PowerShell 2.0 for running a script.
Databáze: Complementary Index
Popis
Abstrakt:The article discusses how to correctly pass data containing embedded spaces into Windows PowerShell scripts. It explains the use of a Windows Script Host (WHS) batch-file wrapper to address stripping double quotes and to pass correctly arguments that need to be enclosed in double quotes to PowerShell scripts. It also describes how to turn arguments into PowerShell 1.0 input and cites the alternative string parsing technique being provided by PowerShell 2.0 for running a script.
ISSN:15523136