@echo OFF CALL :fetch_screenshot_and_code 411, 9000, home-page-mobile, https://www.elementive.com/ CALL :fetch_screenshot_and_code 1920, 1080, home-page-desktop, https://www.elementive.com/ CALL :fetch_screenshot_and_code 411, 9000, about-page-mobile, https://www.elementive.com/about-elementive/ CALL :fetch_screenshot_and_code 1920, 1080, about-page-desktop, https://www.elementive.com/about-elementive/ :fetch_screenshot_and_code "C:\Users\matth\AppData\Local\Google\Chrome SxS\Application\chrome" --headless --disable-gpu --enable-logging --window-size=%~1,%2 --screenshot="C:\Users\matth\Documents\FetchPages\Screenshots\%DATE:/=_%-%3.png" %4 "C:\Users\matth\AppData\Local\Google\Chrome SxS\Application\chrome" --headless --disable-gpu --enable-logging --window-size=%~1,%2 --dump-dom %4 > "C:\Users\matth\Documents\FetchPages\SrcCode\%DATE:/=_%-%3.txt"