objFTP.Rename (wodFtpDLX / wodFtpDLX.NET)
Hello,
can anybody please help me with the following problem.
I do a objFTP.Rename NewRemotePath , OldRemotePath of a file.
F.E. objFTP.Rename /DONE/AB250407.txt , /TODO/AB250407.txt
When the file doesn't exist, the vbs-script fails. How can I prevent this ?
Thanks in advance,
Greetings Peter Stam
Re: objFTP.Rename
Hi Peter,
You can skip the error by using On Error Resume Next line, which will cause the vbs to process the next line of the code without failing.
If you want to retrieve the error which occured, you can do it by reading the LastError Property.
Regards,
Damba