但是比如我运行一个命令:F:\dl-down>dl-down.exe https://www.ssd.com/view_video.php?viewkey=sh6ae3e235skhjw或者你下面当成一个文本文件list.txt的内容也行
[SSD] sh6ae3e235skhjw: Downloading pc webpage
[SSD] sh6ae3e235skhjw: Downloading m3u8 information
[SSD] sh6ae3e235skhjw: Downloading m3u8 information
[SSD] sh6ae3e235skhjw: Downloading m3u8 information
[download] Destination: Tom we apple jump on desktop-sh6ae3e235skhjw.mp4
[download] 100% of 4232.77MiB in 01:22
在这个示例中,我想只将[download] Destination: 后面提取出来做为变量,如果是用:号的话,其它行都有冒号,我只想要这单独的[download] Destination: 后面的部分作为变量“ Tom we apple jump on desktop-sh6ae3e235skhjw.mp4”
其实,我也试过用 findstr/i "[download] Destination:" 但是这样输出就是整行了,我需要去掉“[download] Destination:”这一部分。
echo 变量
再次表示感谢您!