Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"LogFileName"="C:\\Users\\BShneider\\RaceLog\\putty.log"
"LogType"=dword:00000002
you can update the registry whenever you need to change the filename and just load the defaults
Shell "C:\Program Files\PuTTY\putty.exe telnet:192.168.1." & sWhichBox & ":10001" &" -sessionlog " & sPath & "trident_" & sWhichBox & ".log" , vbNormalFocus
For batch usage you would use plink and redirect the stdin/stdout/stderr. For doing this with putty, you need to set the logging in the putty UI first and store that settings. Then the output is copied to file.