How to Make a Log File
How to Make a Log File
You can create a log file without using a compiler. Here is the simplest and smallest way to create log files in Windows operating systems.
Steps

Open Notepad.

Add this code to the top line of the text file: "echo %date% %time% >>log.txt".

Click "Save As" from the file menu, and write your file name in the format shown below. "Name.bat" Note: You have to type all 10 characters of the above line Later you may change the 4 characters of Name (4 characters before Dot) The first and last 5 characters are to be written as it is

Save it in the folder where you want to see the log file. Note. Whenever you open Name.bat file( batch file) your log file (log.txt) will get updated. It will contain list of dates and times at which it was opened.

What's your reaction?

Comments

https://umatno.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!