Shell function

  • Thread starter Brent Hoskisson
  • 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
 
K

Kaustav Neogy

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.
 
B

Brent Hoskisson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top