Aussie owned and operated, with 23+ years of industry experience, Gold Coast InfoTech is delighted to support all of your business technology requirements.

Gallery

Contacts

success@goldcoastinfotech.com.au

1800 291 071

Scripts, Commands, Registry

Batch File – Sound Alert on Folder Exist

:TestAgain CLS

IF NOT EXIST c:FOLDERALERT_* GOTO NOALERT

“C:windowssndrec32.exe” /play /Close  “C:WINDOWSMEDIAWindows Ringin.wav”

REm Start /MIN “C:Program FilesWindows Media Playerwmplayer.exe”  “C:WINDOWSMEDIAWindows Ringin.wav” REM “%SystemRoot%system32SoundRecorder.exe” /CLOSE /PLAY “C:WINDOWSMEDIAWindows Ringin.wav”

PING 127.0.0.1 -n 5 -w 2000 >NUL Rem Taskkill /IM “WMplayer.exe” /F

PING 127.0.0.1 -n 5 -w 2000 >NUL GOTO TestAgain

:NOALERT

PING 127.0.0.1 -n 5 -w 4000 >NUL

GOTO TestAgain

Author

Customer

Leave a comment

Your email address will not be published. Required fields are marked *