Changes remote working directory for active session.
cd [ <directory> ]
directory is not specified, changes to home directory.
Converting to .NET Assembly
WinSCP .NET assembly does not have a concept of current working directory. When converting script to .NET Assembly, you have to convert relative paths to absolute paths.