I am trying to list all files inside a certain directory and its sub-directories, I used the following command:
string command = "dir /root/dirname /a-d /b /s";
but it's giving an error:
cannot access /a-d: No such file or directory
cannot access /b: No such file or directory
cannot access /s: No such file or directory
What is wrong with my command?