Skip to content
Advertisement

Tag: powershell-3.0

Save list of txt files through referencing array [Powershell]

I have a file that has some names (table_names.txt) whose contents are: and another file that has some entries (test.txt) whose contents include the above names, like: I need to write a for loop in powershell that creates, within my current directory three separate files: ALL_Dog.txt whose contents are “INSERT INTO ALL_Dog VALUES (1,2,3)”, ALL_Cat.txt whose contents are “INSERT INTO

Advertisement