Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $urllist = Get-Content C:templisteurl.txt
- foreach($url in $urllist)
- {
- $proc = start-process "C:Program Files (x86)Mozilla Firefoxfirefox.exe" -argumentlist $url -PassThru
- start-sleep -seconds 10
- stop-process $proc -force -erroraction silentlycontinue
- }
- import subprocess as sp
- import webbrowser
- import time
- f = open('listeurl.txt','r')
- urls = f.readlines()
- for url in urls:
- child = sp.Popen(["firefox", url ])
- time.sleep(10)
- child.kill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement