Here is some strung together windows commands to backup PuTTY registry keys:
@echo off
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
echo Backing up PuTTY registry to .\PuTTY-sessions-%mydate%_%mytime%.reg
regedit /e .\PuTTY-sessions-%mydate%_%mytime%.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
Hope that works for you.
No comments:
Post a Comment