Page 1 of 1

Every line of txt as variable

Posted: 27 Sep 2018 07:43
by Tami
Hi,
so i wanted to execute a command with every line of a txt file.

Example:
This txt file with links

Code: Select all

https://www.youtube.com/watch?v=xcJtL7QggTI
https://www.youtube.com/watch?v=0vrdgDdPApQ
https://www.youtube.com/watch?v=D24lUBJLNMY
https://www.youtube.com/watch?v=Bey4XXJAqS8
https://www.youtube.com/watch?v=r29leOOey-c
Then this command:

Code: Select all

"x.exe --link %link%"
after the program is done, it should take the second link of the txt file and repeat the command with the new link.

I have tried many things, but unfortunately nothing has worked...

Thank you!

Re: Every line of txt as variable

Posted: 27 Sep 2018 08:02
by Squashman
Tami wrote:
27 Sep 2018 07:43
I have tried many things, but unfortunately nothing has worked...
Please post what you have tried so that we can help you learn.