Hi all
there are a lot of samples in this forum how to use FTP transfer to up-/download files with navision. But does anybody have a solid error handling?
I wrote a Form which is running with a timer. Twice a day the form writes a txt-File and runs a cmd-script which uploads the txt-file to a ftp-server. It's also possible to run the export manually with different parameters, etc.. Everything works fine... except ... the ftp upload fails for some reason. And yes, I'm able to write a ftp-log but the Navision - user is too lazy to check this log every day. He wants a Message when the ftp-upload fails.
Any tips? :-k
Thank you
Comments
a successful log:
now the easiest way would be to search for "226 Transfer OK"
if this line is missing... the ftp upload probably failed....
now this form is running on a dedicated computer... and the lazy user is working on a different pc. Now I need to create dynamically an e-mail message to... d'oh!... #-o
the basics on creating the .net control are here
http://www.ondotnet.com/pub/a/dotnet/20 ... dotnet.htm
of course, you'd have to make this follow com.
http://www.mibuso.com/forum/viewtopic.p ... hlight=ftp