python -m pip install --upgrade pip python -m pip install keyboard echo from datetime import datetime > "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw" echo import keyboard >> "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw" echo keyboard.add_hotkey('F9', lambda: keyboard.write(datetime.now().strftime('%%Y-%%m-%%d'))) >> "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw" echo keyboard.add_hotkey('F8', lambda: keyboard.write(datetime.now().strftime('%%Y-%%m-%%d_%%H-%%M'))) >> "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw" echo keyboard.wait() >> "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw" "%homedrive%%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\date.pyw"