Need Help

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top