Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd %userprofile%\desktop
- set a=0
- Set begin=Start Time: %date% %time%
- :top
- set /a a=%a%+1
- echo %a%
- if %a%==1000000 goto end
- goto top
- :end
- Set end=End Time: %date% %time%
- echo %begin%
- echo %end%
- :reask
- echo Would you like to create a log for this test? (y/n)
- set /p log=
- if /i %log%==y goto next
- if /i %log%==n exit
- echo Invalid entry
- goto reask
- :next
- if exist Tests.txt goto last
- echo The count to 1,000,000 started at %begin% and ended at %end% > Tests.txt
- pause>nul
- exit
- :last
- echo The count to 1,000,000 started at %begin% and ended at %end% >> Tests.txt
- pause>nul
- exit
Advertisement
Add Comment
Please, Sign In to add comment