Skip to content

Instantly share code, notes, and snippets.

@SMUsamaShah
Created January 30, 2023 14:09
Show Gist options
  • Select an option

  • Save SMUsamaShah/e18ee2771f635d526a0bc3249fc362ef to your computer and use it in GitHub Desktop.

Select an option

Save SMUsamaShah/e18ee2771f635d526a0bc3249fc362ef to your computer and use it in GitHub Desktop.
Quick Diary/Journal/Notes/Memo entry on windows
; 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
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