lpwd command
Prints current local working directory (valid for all sessions).
Advertisement
Syntax
lpwd
Converting to .NET Assembly
There is no equivalent for lpwd
command in .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.
If you need to retrieve current local working directory (such as script startup directory), make use of relevant functions of your runtime environment. In .NET framework, you can use System.Environment.CurrentDirectory
. In PowerShell, you can use also Get-Location
cmdlet.