I have experienced a slight issue with how WinSCP loads putty.
I have WinSCP loaded via bat file.
It seems that the putty integration does not recognize a relative path when putty is in a different directory to the starting command. So unless it is in the same directory as the bat file it cannot work without setting a full path.
If i cd into the folder first using the bat file, then call do start
it works as intended.
So this bat file only works if putty is in the same location as the bat file.
start bin\WinSCP.exe & for %%f in (%cd%\keys\*.ppk) do start bin\kageant.exe "%%f"
Whereas this bat file only works if putty in the same directory as WinSCP.
start WinSCP.exe & for %%f in (%cd%\..\keys\*.ppk) do start kageant.exe "%%f"
Is this a bug or something intentional i don't fully understand? I'd like to be able to set a relative path to putty regardless of where WinSCP was started.