Process Run Time Error

M

Mark Vergara

Hi Everybody

Anyone please help us on this we do not
know why we received an error like this
we notice this when we are using Windows 2000
but this Error does not show in Windows XP

we used to code like this:

Dim myproc as new ProcessStartInfo
myproc = "http.//www.mysite.com"
myproc.arguments = "My Arguments"
Process.Start(myproc)

after executing the Process.Start(myproc) then
Error message appear on us
Process.Start(myproc) Run-time exception thrown :
System.ComponentModel.Win32Exception - The system cannot find the file
secified

we try to use another code:
Process.Start(http://www.mysite.com)

and we got an Error:

The system cannot find the file specified

System.ComponentModel.Win32Exception

Stack Trace:
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at

So please anyone help us Is there any other alternative code
aside from using the process ? any Idea we recieve
are hiighly appreciated...

Thanks
Mark Vergara
 
J

Josh Moody [MSFT]

I'm not positive, but I think you want your proc to be "start" and your
arguments to be the url. Having not tried this at all, that'd be my guess.

HTH.

Josh Moody
Developer Division Sustained Engineering Team

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 

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

Top