That would be a type of System.Collections.Specialized.OrderedDictionary, by the way.
-----Original Message----- From: Michael B. Smith [mailto:[email protected]] Sent: Monday, April 09, 2012 11:51 AM To: NT System Admin Issues Subject: RE: Powershell arrays If you want an ordered dictionary, then you should specify an ordered dictionary. Otherwise, the order is "defined to be" random; even though may be able to determine a predictable order, it is not guaranteed. Especially between versions of PowerShell. -----Original Message----- From: Joseph L. Casale [mailto:[email protected]] Sent: Monday, April 09, 2012 11:32 AM To: NT System Admin Issues Subject: Powershell arrays If I want to write a script that takes a list of files as one of the inputs, is it safe to to define a parameter as an array and pass it the files like "c:\path\file","d:\path\file" and expect the order to be reliable? is their a smarter way to do this, or is that sufficient? Thanks! jlc ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
