Lauching external program error

cpopham

Junior Contributor
Joined
Feb 18, 2004
Messages
273
I do not know the correct place for this thred, but hopefully someone can help me here.

I have a piece of code that luanches an Access database. When the database lauches it imports some inforation from Paradox table and does soem other things and then the Access database automatically closes. Here is my vb .net code for starting the Access database:

Code:
        Dim strPath As String = "P:\ForACC\Parking\FAPark.mdb" '/// your file's path goes here.
        System.Diagnostics.Process.Start(strPath)

When I try running this code, I get the following error:

An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll

Additional information: An error occurred in sending the command to the application

Any Ideas? I have used this code before to launch notepad and never had a problem.

Thanks, Chester
 
I fixed this another way. I started the database as a process and since the database self closes I did a wait for end and it works fine now...

Chester
 
Back
Top