Shell function

  • Thread starter Thread starter Brent Hoskisson
  • Start date Start date
B

Brent Hoskisson

Has anyone used the shell function in ASP.NET? I am
porting an app from VB.NET to ASP.NET and that is the only
line I'm hung up on. I know that it tries to work because
the result is a blank file, but when I run the bat file
(which the ASP program creates) manually, the correct
results are returned.

Thanks for any help
Brent
 
Hi Brent,

how about something like this -

Dim myprocess As System.Diagnostics.Process = New
System.Diagnostics.Process()

myprocess.EnableRaisingEvents = False
myprocess.StartInfo.FileName = "program.exe"
myprocess.StartInfo.WorkingDirectory = "C:\Program
Files\program directory\"
myprocess.Start()

HTH

Kaustav Neogy.
 
I tried it with the same results. It works in the exe - not in the web
page.

I have this in a DLL assembly. The same assembly is being hit in both
programs same path location, except one is asp and the other is machine
code. It appears that aspnet can't run an exterior program and wait for
results. I don't understand why.

Thanks
Brent
 
Back
Top