Created
January 30, 2023 14:09
-
-
Save SMUsamaShah/e18ee2771f635d526a0bc3249fc362ef to your computer and use it in GitHub Desktop.
Quick Diary/Journal/Notes/Memo entry on windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; If there is any other way in windows to set global hotkey to run diary.bat you can do that | |
| ; Global hotkey Win + \ using AutHotkey script to simply run diary.bat | |
| <#\::Run, d:\diary.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM It will prompt for your input, you write some text, press enter, and it will disappear while | |
| REM appending your entry with a timestamp on a new line | |
| @echo off | |
| set /p note="Note> " | |
| echo [%DATE% %TIME%] %note% >> d:\diary.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment