Skip to content

Instantly share code, notes, and snippets.

@lsauer
Created August 22, 2013 08:13
Show Gist options
  • Save lsauer/6304458 to your computer and use it in GitHub Desktop.
Save lsauer/6304458 to your computer and use it in GitHub Desktop.
Windows .bat Batchfile to export PuTTY session/configuration data
ECHO off
REM PuTTY is an SSH and telnet client, developed originally by Simon Tatham
REM setup
SET defaultpath="C:\putty_config.reg"
ECHO "USAGE: %0 <filepath for .reg|default=%defaultpath%>"
IF %1.==. (
ECHO Missing path argument; using %defaultpath%
) else (
SET defaultpath=%1
)
:Finished
ECHO Exported to: %defaultpath%
regedit /E %defaultpath% HKEY_CURRENT_USER\Software\SimonTatham
ECHO Finished. Open the file now on a Windows-PC with your Putty Installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment