kitty.exe -cmd "cd ""!/"""
This works fine until my path has unicode characters.
It appears that when a path has these characters WinSCP wraps them in double quotes independently of the command which then breaks the command.
Using the command in this path:
Sigur Rós - Með suð í eyrum við spilum endalaust
Gives this error.
If I change the command to this it appears to fix the issue:
-cmd "cd '!/'"
I can now successfully launch kitty and cd into any directory I like included paths with spaces and or unicode characters.[/code]