running vb6 app using asp.net

  • Thread starter Thread starter maximas
  • Start date Start date
M

maximas

hello:
I have a vb6 app that updates the access db. I want to
run the app using asp.net on the web server. is there a
way to do that.

thank you
 
Try this code:

Dim myprocess As System.Diagnostics.Process = New
System.Diagnostics.Process()
myprocess.StartInfo.FileName = "c:\MyVB6app.exe"
myprocess.StartInfo.WorkingDirectory = "C:\"
myprocess.StartInfo.Arguments= " file.txt -s -m"
myprocess.Start()
 
be sure the vb6 program is a console app, as it will not have permission to
open a window (vb form).
 
the problem is that this app is a windows form written in vb 6.0 and
does not have consoles. I check your codes and it give me the error
that it can't find the file. As you said, this code only is good if it
is a process, while it is not a process, it will not work. How would
you execute a .exe app in windows using .aspx form.

thanks,
 
Back
Top