Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Pass Parameters to an Array in Powershell

$
0
0

I want to create a script to accept as input, the names of multiple directories [1...n]and then save them to an array.

ex.  directories.ps1 sql ksh txt

ie run the script passing in the names of the directories which could be any number.

How would I do this in powershell?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>