Guest User

Get-Nyancat

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