echo off REM the last 4, start at 4 but only take 2 SET thedate=%date% SET theyear=%thedate:~-4% SET themonth=%thedate:~4,2% SET theday=%thedate:~7,2%
echo %theyear%-%themonth%-%theday% c:\storage\installs\MercurialCmdPortable\App\Mercurial\hg status c:\storage\installs\MercurialCmdPortable\App\Mercurial\hg add c:\storage\installs\MercurialCmdPortable\App\Mercurial\hg commit -m "%theyear%-%themonth%-%theday% %time%" pause