Posted: 2017-01-23 05:22
Is there any way i can execute "df/du" commands using .NET assembly(Similar to open terminal window in winscp) in windows 7 environment. So that i can export "df/du" commands results to a text file.
Location: Prague, Czechia
If your only access to the server is using some "file transfer protocol" (FTP, SFTP, etc), then there's no better way. Except maybe with WebDAV, which has an API for providing a size of whole directory.
Other than that, the only other way is to execute a shell command that calculates the size for you. Of course, you need to have an shell access to the server for that.
In WinSCP .NET assembly, you can use the
In WinSCP scripting, you can use the
You can post new topics in this forum
And it's free!