How to export/import PuTTy sessions list?

后端 未结 15 1249
时光取名叫无心
时光取名叫无心 2020-12-22 14:41

Is there a way to do this?

Or I have to take manually every record from Registry?

15条回答
  •  失恋的感觉
    2020-12-22 15:11

    The answer posted by @m0nhawk doesn't seem to work as I test on a Windows 7 machine. Instead, using the following scripts would export/import the settings of putty:

    ::export
    @echo off
    set regfile=putty.reg
    pushd %~dp0
    
    reg export HKCU\Software\SimonTatham %regfile% /y
    
    popd
    

    --

    ::import
    @echo off
    pushd %~dp0
    set regfile=putty.reg
    
    if exist %regfile% reg import %regfile%
    
    popd
    

提交回复
热议问题