Hi,
I have a Object script that runs a NPR report in Meditech, Encrypts it,
then FTP's it to a vendor,
here is the code.
yyyy = Year(Now())
mm = Month(Now())
dd = Day(Now())
a = yyyy & mm & dd & "A"
Encrypt_Line = "gpg -r securedata --always-trust --yes -o
c:\encrypted_to_send\survey_file_2.gpg -e c:\survey_files\survey_file_2.txt"
FTP_Cmd = "put c:\encrypted_to_send\survey_file_2.gpg " & a & "c.gpg"
Set W = New WinScript
W.Connect "cmd", stConsole
M.Wait 0.5
W.Enter "c:"
M.Wait 0.5
W.Enter "cd\gnupg"
M.Wait 0.5
W.Enter Encrypt_Line
M.Wait 5
W.Enter "ftp"
M.Wait 5
W.Enter "open ftp.xxxxxxx.com"
M.Wait 5
W.Enter FTP_User_Name
M.Wait 5
W.Enter FTP_Pass_Word
M.Wait 5
W.Enter FTP_Cmd
M.Wait 10
W.Enter "bye"
M.Wait 2
W.Connect "", stConsole
It then runs the next NPR, and encrypts and ftps it.
Hope this helps
Bruce
"Benjamin, Morris" <[EMAIL PROTECTED]>@BOSTONWORKSTATION.COM
on 04/01/2004 01:44:05 PM
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: [Talk] Script To FTP Files
I am looking for a script sample to FTP a file from a remote server using
IP Address of the server. I can do this process using the DOS console.
Does any one have a script using Windows? Thanks.
Morris Benjamin
Programmer/Analyst
Daniel Freeman Hospital
310-448-7833