Skip to content

Instantly share code, notes, and snippets.

@pckujawa
Created June 12, 2012 20:19
Show Gist options
  • Save pckujawa/2919894 to your computer and use it in GitHub Desktop.
Save pckujawa/2919894 to your computer and use it in GitHub Desktop.
Quick backup of environment variables (including PATH) in windows
cmd /k "date /t >> envvars.txt && time /t >> envvars.txt && set >> envvars.txt"
@pckujawa
Copy link
Author

Or use cmd /c to have the cmd window close when it's done. This script appends to the file so you can get a versioned backup whenever you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment