Created
August 22, 2013 08:13
-
-
Save lsauer/6304458 to your computer and use it in GitHub Desktop.
Windows .bat Batchfile to export PuTTY session/configuration data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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