Here is the full code for the event
============================================================
Option Compare Database
-----------------------------------------------------------
''Subroutine to create the pipe delim file from the 9000 using text box input
Public Sub createpsv(client_name, study_code)
Call Shell("rsh server1 -l kevind -n cd /qc2/projects/" & client_name & "/" & study_code & _
"; /ers/scripts/perl/makecsv.pl onecol"
End Sub
-----------------------------------------------------------
''Subroutine to create the FTP Script using the text box input
Public Sub makeftp(client_name, study_code)
Open "c:\temp\ftpscript" For Output As #1
Print #1, "open ftp.sever1.com"
Print #1, "user"
Print #1, "password"
Print #1, "get /qc2/projects/" & client_name & "/" & study_code & "/onecol.psv c:\temp\onecol.psv"
Print #1, "quit"
Close #1
End Sub
-----------------------------------------------------------
''Subroutine to call the ftp script
Public Sub runftp()
Call Shell("ftp -s:C:\temp\ftpscript"
End Sub
-----------------------------------------------------------
Private Sub cmdGo_Click()
Dim FTPScript As String
Dim Client, Study As String
txtClientName.SetFocus
Client = txtClientName.Text
txtStudyCode.SetFocus
Study = txtStudyCode.Text
''CREATE PSV FILE ON THE 9000
Call createpsv(Client, Study)
''CREATE FTP SCRIPT
Call makeftp(Client, Study)
''RUN THE FTP SCRIPT
Call runftp
end sub
------------------------------------------------------------
Kevin M. Douglas
kevin@easternresearch.com