if not exist "%windir%\Sysnative\cmd.exe" (set CMD_EXE=%COMSPEC%) else (set CMD_EXE=%windir%\Sysnative\cmd.exe)
reg add "HKCU\AppEvents\EventLabels\WincmdConnected" /f /ve /t REG_SZ /d "FTP-соединение установлено"
reg add "HKCU\AppEvents\EventLabels\WincmdCopyComplete" /f /ve /t REG_SZ /d "Копирование/перемещение завершено"
reg add "HKCU\AppEvents\EventLabels\WincmdDeleteComplete" /f /ve /t REG_SZ /d "Удаление завершено"
reg add "HKCU\AppEvents\EventLabels\WincmdPackComplete" /f /ve /t REG_SZ /d "Упаковка завершена"
reg add "HKCU\AppEvents\EventLabels\WincmdSearchComplete" /f /ve /t REG_SZ /d "Поиск завершён"
reg add "HKCU\AppEvents\EventLabels\WincmdTransferComplete" /f /ve /t REG_SZ /d "Передача завершена"
reg add "HKCU\AppEvents\EventLabels\WincmdUnpackComplete" /f /ve /t REG_SZ /d "Распаковка завершена"
reg add "HKCU\AppEvents\Schemes\Apps\Wincmd" /f /ve /t REG_SZ /d "Total Commander PowerUser"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdConnected\.current" "" "%~dp0TC Connected To FTP.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdCopyComplete\.current" "" "%~dp0TC Operation Complete.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdDeleteComplete\.current" "" "%~dp0TC Delete Complete.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdPackComplete\.current" "" "%~dp0TC Pack Complete.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdSearchComplete\.current" "" "%~dp0TC Search Complete.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdTransferComplete\.current" "" "%~dp0TC Transfer Complete.wav"
"%~dp0..\..\nircmdc.exe" regsetval sz "HKCU\AppEvents\Schemes\Apps\Wincmd\WincmdUnpackComplete\.current" "" "%~dp0TC Unpack Complete.wav"