Skip to content

Instantly share code, notes, and snippets.

@twinkfrag
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save twinkfrag/10624160 to your computer and use it in GitHub Desktop.

Select an option

Save twinkfrag/10624160 to your computer and use it in GitHub Desktop.
@echo off
set dt=%date%
set tm=%time: =0%
set d=%dt:~2,2%%dt:~5,2%%dt:~8,2%
set t=%tm:~0,2%%tm:~3,2%%tm:~6,2%
psql -U user -L %d%_%t%.log test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment