Skip to content

Instantly share code, notes, and snippets.

@kachick
Created May 22, 2012 05:52
Show Gist options
  • Select an option

  • Save kachick/2766915 to your computer and use it in GitHub Desktop.

Select an option

Save kachick/2766915 to your computer and use it in GitHub Desktop.
昔でっちあげたもの - Alarm再生&ログ生成バッチ(XP or 2003)
::
::Description:
:: Alarm再生&ログ生成バッチ(XP or 2003)
::
::Usage:
:: 叩けば動きます。
:: 例外処理とかなんも無し
::
::::::::::::::::::::::::::::::::::::::::::::::
@echo off
setlocal enabledelayedexpansion
set logfile=Alarm_%date:~0,4%%date:~5,2%%date:~8,2%.log
set alarm="Alarm.wav"
echo %date%_%time%: バッチファイルが起動しました。 >> %logfile%
mplay32 /play /close %alarm%
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment