Solved extracting web addresses using a batch file

April 15, 2019 at 09:15:36
Specs: Windows 10
How can I extract all the web addresses currently open in chrome and save it to a text file using a batch file

See More: extracting web addresses using a batch file

Reply ↓  Report •

#1
April 16, 2019 at 03:38:58
✔ Best Answer
powershell can, batch cannot as far as i know.
i might be able to do so in batch with a workaround, where i check "saved sessions", given that they mostly in plain text (wihch was not the case for firefox, tho i did find all open url's)

for chrome there is a bunch here:

%LOCALAPPDATA%\Google\Chrome\User Data\Default

I am however not doing to look through all the files, multiple Megabytes worth of data, to find out where and how the last session/tabs are stored so i can extract it and then run chrome.exe from batch with the previous session url's.


if you just want to continue where you left last time., just enable that option in the chrome settings, just browse to:

chrome://settings/onStartup

scroll down to startup options and select "Continue where i left off"

i5-6600K[delid]@4.9GHz/4.4GHz cache/@1.504v | 2x4GB Crucial-DDR4-2400CL17@CL12-15-15-28 1T 3000MHz@1.45v | Sapphire Nitro+ SE RX 590 8GB@1525Mhz core@1.0v/2250MHz@1500MHz timings BiosModded


Reply ↓  Report •

#2
April 17, 2019 at 10:42:52
Thanks hidde663. Now I am using Powershell.

Reply ↓  Report •
Related Solutions


Ask Question