ScruffyRules

Play sound and open Chrome

Mar 9th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.37 KB | None | 0 0
  1. :: Assuming Windows 10 or something
  2. :: Replace "C:\Windows\Media\notify.wav" with whatever wav file you got.
  3. :: Using 'start' because powershell waits for the sound to finish
  4. start powershell -c (New-Object Media.SoundPlayer "C:\Windows\Media\notify.wav").PlaySync();
  5. :: chrome.exe (assuming default install dir)
  6. "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Advertisement
Add Comment
Please, Sign In to add comment