Trying to sort it out. The automation piece is part of it. If it's created automatically why is the programmer designating what $args[0], [1], [2], etc is.
Posts made by chutestrate
-
RE: Understanding $args in PowerShell
-
RE: Understanding $args in PowerShell
Both of you have been immensely helpful. I hope I can return the favor in some way.
-
RE: Understanding $args in PowerShell
I definitely am. Unfortunately, i don't see it the way you are telling me.
-
RE: Understanding $args in PowerShell
I'm not fooling myself. I don't do well with trying to be a programmer. This is part of the testing goals. I just got interested in powershell, and am trying it out. Thank you for all the time. I'm rereading the posts, and I'm going to have a hard time matching $args to arrays. Maybe tomorrow it will click.
-
RE: Understanding $args in PowerShell
Not a problem. This has been phenomenal. I've learned a lot. I'll try to use this to understand the args. Unfortunately, I'm looping back to some of my original confusion. I know you addressed it, but it's not making completed sense.
-
RE: Understanding $args in PowerShell
@scottalanmiller said:
@chutestrate said:
For my current limited understanding arrays are easier to understand than than the $args
$args is just an array, nothing more.
don't follow that one.
-
RE: Understanding $args in PowerShell
For my current limited understanding arrays are easier to understand than than the $args
-
RE: Understanding $args in PowerShell
You guys are right about needing to understand arrays better i guess. I just started this last week, and thought i had at least a slight understanding of it. I can follow the scripting commands in the first line, but what is the second line doing?
At least i can make ps1 files, and get it into powershell, lol
-
RE: Understanding $args in PowerShell
Sorry martin9700 I'm not even close to understanding what you are trying demonstrate.
-
RE: Understanding $args in PowerShell
Well, I"m just not going to get this easily. I'm getting singular concepts but it's not flowing together cohesively.
-
RE: Understanding $args in PowerShell
Ok, still finding this a bit difficult. I thought the $args was created automatically so is it necessary to include the $args[0] as in the example?
-
RE: If you are new drop in say hello and introduce yourself please!
John from Pa. Working towards my mcse. i enjoy kidding around, and look forward to meeting fellow nerds.