Posted: 2012-05-10 14:45
I'm trying to download from FTP site to a local path all folders and files and then delete all, but I don't know how do to delete remote folders. I'm using the next command:
synchronize local "C:\temp"
rmdir * '<< Incorret command
This script fails because says it can delete folders (obviusly). Can I use rmdir to delete all folders?
How I can delete all of them?
Thanks a lot,
Location: Prague, Czechia
There's no command to delete all folders. The rmdir command does not accept file masks.
You can list the folders and remove them one by one.
For that, easier than using scripting interface directly would be to use WinSCP .NET assembly:
You can post new topics in this forum
And it's free!