Skip to main content
Applied some formatting.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

    @echo off
    date /t
    time /t
    YourApp.exe
    date /t
    time /t
    
  3. Type mytimer.bat in the command line then press Enter.

@echo off  
date /t  
time /t  
YourApp.exe  
date /t  
time /t
  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

@echo off  
date /t  
time /t  
YourApp.exe  
date /t  
time /t
  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

    @echo off
    date /t
    time /t
    YourApp.exe
    date /t
    time /t
    
  3. Type mytimer.bat in the command line then press Enter.

improved code formatting (as proposed) + fixed code in numbered list problem
Source Link
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

    @echo off date /t time /t YourApp.exe date /t time /t

  3. Type mytimer.bat in the command line then press Enter.

@echo off  
date /t  
time /t  
YourApp.exe  
date /t  
time /t
  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

    @echo off date /t time /t YourApp.exe date /t time /t

  3. Type mytimer.bat in the command line then press Enter.

  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

@echo off  
date /t  
time /t  
YourApp.exe  
date /t  
time /t
  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.batnotepad mytimer.bat, click yes'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exeYourApp.exe with your program, then save.

    @echo off date /t time /t YourApp.exe date /t time /t

  3. Type mytimer.bat in the command line then press Enter.

@echo off

date /t

time /t

YourApp.exe

date /t

time /t

  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.bat, click yes to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

@echo off

date /t

time /t

YourApp.exe

date /t

time /t

  1. Type mytimer.bat in the command line then press Enter.
  1. In the directory where your program is, type notepad mytimer.bat, click 'yes' to create a new file.

  2. Paste the code below, replacing YourApp.exe with your program, then save.

    @echo off date /t time /t YourApp.exe date /t time /t

  3. Type mytimer.bat in the command line then press Enter.

Source Link
John Snow
John Snow
Loading