Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: ls command give files and directory listing error even directory have more than 10 files

First, use WinSCP .NET assembly:
https://winscp.net/eng/docs/library

Anyway, did you try using ls /'BBB.'? Can you access the folder using WinSCP GUI? Post logs.
nishit.2571988@gmail.com

ls command give files and directory listing error even directory have more than 10 files

When change current directory then it will change to /'BBB.' but when I enter ls command to listing files and directory then it will give error like below even /'BBB.' directory have more than 10 files
CWD cmd failed : EDC5129I No such file or directory.

code is below.
winscp.StandardInput.WriteLine("lcd c:\\Users\Test\Documents");
winscp.StandardInput.WriteLine("cd /'AAA.' "); //working directory
winscp.StandardInput.WriteLine("ls");
winscp.StandardInput.WriteLine("cd /'BBB.' "); //change dir successfully
winscp.StandardInput.WriteLine("ls"); // give error for listing files and dir