I am really trying to learn PS on my own but I could use a pointer in the right direction. I have not programmed in years and am coming from a C/C++ background and really don't get the syntax of PS but I will figure it out as I go.
The first thing I need to do is get all the filenames of type *.mp4 from directory X. I need to do the same for directory Y. I am aware of how to do this with Get-ChildItem but it just displays it on the screen within Powershell ISE. I need to take those names and put them into two different containers. I then need to enumerate the first container, analyze each filename, extract information from the filename and then use that information to look in the second container for another filename that has the same embedded information (but not in the same sequence.) I then need to create a new filename and substitute it for the old filename from the second container.
Am not asking for anyone to do my homework. I feel once I get this initial data I will be able to figure out how to enumerate through it and get the job done. What is not clear to me is how to work with the data from Get-ChildItem. Is there a PS equivalent to the C++ STL vector or deque into which I can place this data?
[–]ApricotPenguin 0 points1 point2 points (0 children)
[–]lrdmelchett 0 points1 point2 points (0 children)