|
|
本帖最后由 skpkmon 于 2022-10-25 17:24 编辑
- @echo off
- Setlocal enabledelayedexpansion
- for /l %%a in (0005 1 1000)do (
- set /a n+=1
- if !n! lss 100 (set n1=0!n!)else set n1=!n!
- echo !n1!,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top>>B.txt)
复制代码 现在执行后结果是这样:
01,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
02,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
03,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
04,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
05,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
///
996,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
各位大师,请帮帮忙,这是以前的一位师兄给我的,但日子久了忘了怎样改,
执行bat后希望结果应是以下这样:
01,http://126.40.191.58:9901/tsfile/live/0001_1.m3u8?blog.ntnas.top
02,http://126.40.191.58:9901/tsfile/live/0002_1.m3u8?blog.ntnas.top
03,http://126.40.191.58:9901/tsfile/live/0003_1.m3u8?blog.ntnas.top
04,http://126.40.191.58:9901/tsfile/live/0004_1.m3u8?blog.ntnas.top
05,http://126.40.191.58:9901/tsfile/live/0005_1.m3u8?blog.ntnas.top
///
996,http://126.40.191.58:9901/tsfile/live/0996_1.m3u8?blog.ntnas.top |
|