这是我的批处理文件的代码,它读取文本文件并在浏览器中单独的选项卡中以新行打开所有文本,但我想在新浏览器窗口中打开每个文本。有人能帮我修改代码吗?
@echo off
set FILE_PATH=C:\Users\XXXXX\Desktop\text.txt
for /F "tokens=*" %%A in (%FILE_PATH%) do (
start "" "https://www.google.com/search?q=%%A"
)
答案1
我找到了解决方案
@echo off
set FILE_PATH=C:\Users\XXXX\Desktop\text.txt
for /F "tokens=*" %%A in (%FILE_PATH%) do (
start Chrome --new-window "https://www.google.com/search?q=%%A"
)