M
Manny
Hi Guys,
I need to implement a solution in .net for following Situation.
My Company has couple of Vendors and need to Get/Put files via FTP daily on
a Scheduled Basis. I have implemented Batch Scipts and have automated the
execution via Windows Scheduler.
Process runs fine however there are hiccups and also not detailed logging,
therefore requires us to keep eye on the processs daily.
Could you please assist what I can do in .NET to implement the following.
Also please tell me how i can schedule the execution for example Start daily
at 5 AM.
Open FTP connection to Site A (secured site therefore Creds passed)
CD Outgoing Folder
Get stg_Test_022809.txt.pgp (filename format stg_test_mmddyy.txt.pgp)
close ftp connection
Decrypt the file using command line
gpg.exe --batch --passphrase-fd 0 --output
c:\Inetpub\wwwroot\CF09%MM%%dd%FG.txt
c:\inetpub\wwwroot\stg_test_%MM%%dd%09.txt.pgp < c:\inetpub\wwwroot\pass.txt
Open FTP Connection to Site B
CD into Incoming folder
Put the file there
Close the connection.
Thanks
Manny
I need to implement a solution in .net for following Situation.
My Company has couple of Vendors and need to Get/Put files via FTP daily on
a Scheduled Basis. I have implemented Batch Scipts and have automated the
execution via Windows Scheduler.
Process runs fine however there are hiccups and also not detailed logging,
therefore requires us to keep eye on the processs daily.
Could you please assist what I can do in .NET to implement the following.
Also please tell me how i can schedule the execution for example Start daily
at 5 AM.
Open FTP connection to Site A (secured site therefore Creds passed)
CD Outgoing Folder
Get stg_Test_022809.txt.pgp (filename format stg_test_mmddyy.txt.pgp)
close ftp connection
Decrypt the file using command line
gpg.exe --batch --passphrase-fd 0 --output
c:\Inetpub\wwwroot\CF09%MM%%dd%FG.txt
c:\inetpub\wwwroot\stg_test_%MM%%dd%09.txt.pgp < c:\inetpub\wwwroot\pass.txt
Open FTP Connection to Site B
CD into Incoming folder
Put the file there
Close the connection.
Thanks
Manny