Skip to content

Latest commit

 

History

History
109 lines (84 loc) · 2.95 KB

PlaySound.md

File metadata and controls

109 lines (84 loc) · 2.95 KB

Logo

Table of Contents
  1. Description
  2. The Function
  3. Examples
  4. Contact
  5. Acknowledgments

PlaySound

Python
YouTube Tutorial

Description

Play a sound file from the console window

The Function

[PlaySound]

Pass the path of the sound file into this function to have it play using the following syntax:

PlaySound "C:\Users\User\AppData\Local\Temp\sound.wav"
function PlaySound {
[CmdletBinding()]
param (	
[Parameter (Mandatory = $True, Position=0, ValueFromPipeline = $True)]
[string]$File
)
$PlaySound=New-Object System.Media.SoundPlayer;$PlaySound.SoundLocation=$File;$PlaySound.playsync()
}

(back to top)

Examples

Listed below are payloads that have used one of these functions:

JumpScare

(back to top)

Contact

📱 My Socials 📱

C#
YouTube
Python
Twitter
Golang
Instagram
Jsonnet
Discord

(back to top)

Acknowledgments


HOME-PAGE

(back to top)