Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function GET-DefaultBrowserPath {
- <# Get the default Browser path #>
- New-PSDrive -Name HKCR -PSProvider registry -Root Hkey_Classes_Root | Out-Null
- $browserPath = ((Get-ItemProperty 'HKCR:\http\shell\open\command').'(default)').Split('"')[1]
- <# Spit out the browser path #>
- return $browserPath
- }
- $nyan= GET-DefaultBrowserPath
- $ctry = 0
- $totaltry = 5
- while($ctry -lt $totaltry){
- Start-Process $nyan -ArgumentList "http://nyan.cat/"
- $ctry = $ctry + 1
- }
Advertisement
Add Comment
Please, Sign In to add comment