Link to home
Start Free TrialLog in
Avatar of Flora Edwards
Flora EdwardsFlag for Sweden

asked on

is there any VB script or any window 10 code that fires loud siren sound when an USB stick is removed

is there any VB script or any window 10 code that fires loud siren sound when an USB stick is removed.

i work in open office env,

sometimes i leave my flash disk and go to kitchen, i just want to make sure no one removes my USB stick.

thanks.
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Assuming USB is X drive. Please find beep.txt attached
@Echo Off
:Start
IF NOT EXIST X: Type beep.txt
TimeOut 1
Goto Start

Open in new window

beep.txt
Avatar of Bill Prew
Bill Prew

I might be able to code an event trapper in VBS that does this, but there might be a slightly lower function way that is easy and gets you what you want.  Why not go into Control Panel, Sound, Sounds tab and set the Device Disconnect to a loud annoying klaxon type sound (easy to find WAV files for those on the internet if you don't have one).  Then when the device disconnects it will make that sound.  If needed turn the volume up on the computer when you step away and lower when you return.

~bp

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Flora Edwards

ASKER

thanks. perfect.

posting similar question.