From 37c6fce19d3eee8fce0f8e370bd67973e3ad0e53 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 17 Apr 2001 10:39:19 +0000 Subject: [PATCH] Useful workaround I was given, to fake storing settings in a file. git-svn-id: svn://svn.tartarus.org/sgt/putty@1064 cda61777-01e9-0310-a592-d414129be87e --- doc/config.but | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/doc/config.but b/doc/config.but index 767a89a8..da25f39a 100644 --- a/doc/config.but +++ b/doc/config.but @@ -501,3 +501,48 @@ SSH sessions. \S{config-auth} SSH authentication options \S{config-protocol} SSH protocol options + +\H{config-file} Storing configuration in a file + +PuTTY does not currently support storing its configuration in a file +instead of the Registry. However, you can work around this with a +couple of batch files. + +You will need a file called (say) \c{PUTTY.BAT} which imports the +contents of a file into the Registry, then runs PuTTY, exports the +contents of the Registry back into the file, and deletes the +Registry entries. This can all be done using the Regedit command +line options, so it's all automatic. Here is what you need in +\c{PUTTY.BAT}: + +\c @ECHO OFF +\c regedit /s putty.reg +\c regedit /s puttyrnd.reg +\c start /w putty.exe +\c regedit /e puttynew.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY +\c copy puttynew.reg putty.reg +\c del puttynew.reg +\c regedit /s puttydel.reg + +This batch file needs two auxiliary files: \c{PUTTYRND.REG} which +sets up an initial safe location for the \c{PUTTY.RND} random seed +file, and \c{PUTTYDEL.REG} which destroys everything in the Registry +once it's been successfully saved back to the file. + +Here is \c{PUTTYDEL.REG}: + +\c REGEDIT4 +\c +\c [-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY] + +Here is an example \c{PUTTYRND.REG} file: + +\c REGEDIT4 +\c +\c [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY] +\c "RandSeedFile"="a:\putty.rnd" + +You should replace \c{a:\\putty.rnd} with the location where you +want to store your random number data. If the aim is to carry around +PuTTY and its settings on one floppy, you probably want to store it +on the floppy. -- 2.11.0