hello,
i only saw the open ticket, so i thought it was not fixed (https://winscp.net/tracker/311).
but i tested it right now, it does not work.
as i described in this thread i want to access keyfiles relative to the program dir, so its easy to put winscp on an usb stick, in a virtualbox or make it easily work on a dual boot system where one sytstem is installed on c: and one on d:.
there are many possibilites to use this function.
as i tested it i noticed it would be great to have this feature on _every_ path in winscp (keyfile, temp dir, seed file, editor, putty), so you can copy or symlink every tool you need in the winscp directory and can copy the whole directory to, for example, an usb stick and it will work out of the box without any config changes.
example:
windows7 64bit:
C:\Program Files (x86)\WinSCP\
Notepad++ <LNK>
Keys <LNK>
Putty <DIR>
Temp <DIR>
C:\Program Files (x86)\Notepad++\
Notepad++ -> Symlink to D:\Program Files (x86)\Notepad++\
Keys -> Symlink to D:\Shared Data\Winscp\Keys (D:\ is a truecrypt volume)
windows xp 32bit (also C: win7 is auto changing the drive letter):
C:\Program Files\WinSCP -> symlink to D:\Program Files (x86)\WinSCP
windows 2k in virtualbox:
the winscp folder is mounted as drive F: in the virtual machine.
so winscp.exe is directly located on F:
usbstick - a copy of the full winscp dir (symlinks are copied as real dirs)
lets assume the usb stick letter will be X:
X:\truecryptcontainer\tools.tc
the tc container will be mounted as, for example, Y:
directory structure on the tc container:
Y:\tools\network\ssh\winscp\
Notepad++ <DIR>
Keys <DIR>
Putty <DIR>
Temp <DIR>
if all path are translated while running line:
win7:
editor: %WINSCPDIR%\Notepad++\Notepad++.exe -> C:\Program Files (x86)\WinSCP\Notepad++\Notepad++.exe
keyfiledir: %WINSCPDIR%\keys\examplekey.key -> C:\Program Files (x86)\WinSCP\keys\examplekey.key
puttypath: %WINSCPDIR%\Putty\putty.exe -> C:\Program Files (x86)\WinSCP\Putty\putty.exe
winxp:
editor: %WINSCPDIR%\Notepad++\Notepad++.exe -> C:\Program Files\WinSCP\Notepad++\Notepad++.exe
keyfiledir: %WINSCPDIR%\keys\examplekey.key -> C:\Program Files\WinSCP\keys\examplekey.key
puttypath: %WINSCPDIR%\Putty\putty.exe -> C:\Program Files\WinSCP\Putty\putty.exe
win2k:
editor: %WINSCPDIR%\Notepad++\Notepad++.exe -> F:\Notepad++\Notepad++.exe
keyfiledir: %WINSCPDIR%\keys\examplekey.key -> F:\keys\examplekey.key
puttypath: %WINSCPDIR%\Putty\putty.exe -> F:\Putty\putty.exe
usbstick:
editor: %WINSCPDIR%\Notepad++\Notepad++.exe -> Y:\tools\network\ssh\winscp\Notepad++\Notepad++.exe
keyfiledir: %WINSCPDIR%\keys\examplekey.key -> Y:\tools\network\ssh\winscp\keys\examplekey.key
puttypath: %WINSCPDIR%\Putty\putty.exe -> Y:\tools\network\ssh\winscp\Putty\putty.exe
advantages:
- one winscp to maintain, multiple winscps in use.
- easily copyable and works out of the box
- flexible
- works with symlinks, hardlinks or real directories
- more secure, if using winscp on an usb stick in a truecrypt container, the temp files will be stored in the truecrypt container.
hope i described it understandable :)
if you need more description or some help i can try to write it more clear, we can chat over irc or talk over skype if you want to.
greets