B
bill
I have a VB .net 2.0 site that needs to run a dos app upon a button
click.
I found Shell too unreliable using parameters and so used
system.diagnostic.process.
simple troubleshooting example that opens up Notepad.....
Imports System.Diagnostics
Dim myProcess As New Process
Dim ShellCmd As String
ShellCmd = "notepad.exe"
myProcess.StartInfo.FileName = ShellCmd
myProcess.Start()
The code works fine - but only in debug mode - ie calling the browser
from the IDE (VS Web Dev express).
When I just use a browser - any browser, I get: an error .
Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo)
When i set this up identically on my home machine it fails silently -
but still works from the IDE
Any ideas why this simple code would fail from a browser but run in
the IDE in debug mode?
Thanks
Bill
click.
I found Shell too unreliable using parameters and so used
system.diagnostic.process.
simple troubleshooting example that opens up Notepad.....
Imports System.Diagnostics
Dim myProcess As New Process
Dim ShellCmd As String
ShellCmd = "notepad.exe"
myProcess.StartInfo.FileName = ShellCmd
myProcess.Start()
The code works fine - but only in debug mode - ie calling the browser
from the IDE (VS Web Dev express).
When I just use a browser - any browser, I get: an error .
Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo)
When i set this up identically on my home machine it fails silently -
but still works from the IDE
Any ideas why this simple code would fail from a browser but run in
the IDE in debug mode?
Thanks
Bill