WellsCarrie
Well-known member
I have the requirement to run a VBS process to FTP files from our AS400 system. The VBS was written for me and I am not allowed to use any other ftping system. (sys admin rules! ).
That being said I have been tasked with writing an application that will fetch the files, process the data in the files, create two - four new files and ftp them to the SAP server.
To run the process I thought I could do the following:
However this only opens the vbs as a text file it does not run it. Anyone have any idea what I missed?
That being said I have been tasked with writing an application that will fetch the files, process the data in the files, create two - four new files and ftp them to the SAP server.
To run the process I thought I could do the following:
VB.NET:
Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.FileName = "c:\ARFiles\ARConversionFTP.vbs"
If Process.Start(psi).HasExited Then
rtbInfo.AppendText("files fetched.")
End If
However this only opens the vbs as a text file it does not run it. Anyone have any idea what I missed?