我目前正在寻找一种方法,可以从txt文件中的链接在Windows批处理文件中设置变量。
例如,如果文本文件如下:
http://website1.com
http://website2.com
http://website3.com
我希望能将它们输出到批处理的变量中。例如:
set var1="Line one of text file, ex: http://website1.com"
set var2="Line two of text file, ex :http://website2.com"
set var3="Line three of text file, ex: http://website3.com"
任何帮助都将不胜感激,提前致谢!