I’m a couple days into this, so total noob. I’m trying to get a directory name via input from user and then name the folder with that variable and copy data to it.
I can get both sides of the pipe to work alone, minus the variable in the 2nd part of course. Any one free to point out the reason this fails? and possibly offer and alternative?
You’re welcome. That’s actually ‘foreach-object’. Forgive my aliasing. There’s also a ‘foreach($item in $group)’ statement that’s different, and may cause you some confusion.
I was hoping I could just make a variable and use it over and over to help reference a directory for lots of different data copying. I’m just fooling around trying to write a little backup program that takes a bunch of various folders and dumps them into 1 folder. In my original attempt, was I using the variable wrong? I was under them impression I could just type the variable and it assumes the variable’s value.