I remember there used to be a way to split txt files by line in cmd prompt. I can't seem to find any documentation on it.
Anyone have any help?
Thanks!
I remember there used to be a way to split txt files by line in cmd prompt. I can't seem to find any documentation on it.
Anyone have any help?
Thanks!
for /F "tokens=*" %i in (filename.txt) do @echo %i
Replace filename.txt
with your filename, and replace @echo %i
with the command you want.
Source: How do you loop through each line in a text file using a windows batch file?
Note: From my brief testing this works in with the standard windows command prompt (cmd), but not with PowerShell.