I have a list of file paths, listed in a text file as follows:
http://localserver.localdomain/folder/filename1.pdf
http://localserver.localdomain/folder/filename2.pdf
http://localserver.localdomain/folder/filename3.doc
http://localserver.localdomain/folder/filename4.doc
and it was suggested to me that the following script might parse the text file for filenames and print them. However I’m unable to make it work and being a powershell pleb I’m not sure exactly how to make it work.
get-content c:myfile.txt|foreach-object{print}
I get “no file to print” when I run it.
What am I missing?
submitted by /u/OtisB
[link] [comments]
The post script to read list of files from text file and print them appeared first on How to Code .NET.