我在批处理文件中使用以下代码来生成多个网页的灯塔报告:
@For /F "UseBackQ Delims=" %%A In ("./url.txt"
) Do @LightHouse "%%A" --disable-storage-reset --emulated-form-factor=desktop --throttling-method=provided --view --only-categories=performance,accessibility --output=json --output=html
文件将通过以下方式存储:
https://miro.medium.com/max/730/1*5cHRuTCcoDcrYbeE0sKZyg.png
url.txt:
https://miro.medium.com/max/875/1*aK5IeNvG9i4uZOCxgjhhvg.png
那么我可以通过对代码进行任何修改来获取具有专有名称的文件名,就像url的最后一部分一样吗?