Changes between Version 4 and Version 5 of Programming/PowerShell/HowToPassCommandLineArgumentsBetweenScripts
- Timestamp:
- Feb 29, 2016, 4:58:31 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Programming/PowerShell/HowToPassCommandLineArgumentsBetweenScripts
v4 v5 141 141 === Solution === 142 142 143 There are 2 solutions. The first uses !PowerShell splatting, available as of !PowerShell V2, but not easily found unless you use the term **`splatting`** in your search. The second involves manual expansion, which I prefer even though it involves more changes. The second method can also be used on the command line when piping the output of native programs. Program output raw strings rather than string arrays, since they don't care about the shell they're being invoked from.143 There are 2 solutions. The first uses !PowerShell splatting, available as of !PowerShell V2, but not easily found unless you use the term **`splatting`** in your search. The second involves manual expansion, which I prefer even though it involves more changes. The second method can also be used on the command line when piping the output of native programs. Programs output raw strings rather than string arrays, since they don't care about the shell they're being invoked from. 144 144 145 145 ==== Solution 1: Using Splatting ====