I am trying to figure out how to join strings from two arrays (line for line).
I need to run a third party app against a set of files. The output file generated by the 3rd party app (different file format) needs to be delivered to the same directory as the source file.
I have generated the required files:
$sourceFiles = c:\temp\sFiles.txt
$sourceDirs = c:\temp\sDirs.txt
# each line in both arrays need to be matched one for one
sourceFiles.txt would contain:
sourceFolders.txt would contain:
As stated, I need to match the two line for line (up to 10000 lines)...SO
I need to be able to loop through the arrays run the app something like this:
& 'c:\program files\3rdPartyApp\App.exe' $sourceFile $sourceDir
& 'c:\program files\3rdPartyApp\App.exe' c:\one\please.log c:\one\two
.... and so on.
Not sure if this is possible?