Thanks for your answer.
Look at code below!
private void btnStart_Click(object sender, System.EventArgs e)
{
myProcess.Start();
}
private void btnStop_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] myProcesses;
myProcesses =
System.Diagnostics.Process.GetProcessesByName("MSAccess");
foreach (System.Diagnostics.Process instance in myProcesses)
{
instance.WaitForExit(3000);
instance.CloseMainWindow();
}
This is for a Windows app. When I configure the myProcess object
StartInfo/FileName to "c:\x\y\msApp.mdb" I can start and stop any number of
Access windows running msApp.mdb
I just wonder why an ASP.NET app cannot do the same thing (can't find the
file)?
As for your response I'll follow your advise and go for a download, maybe
execute it from within an ActiveX control!
regards
Folke
> Hello folke,
> There is no concept of *starting* an mdb. You'd need to download the mdb
[quoted text clipped - 39 lines]
> >>> I get the error message: Can't find file! ???
> >>> I need to start appxxx from the ASP.NET app!
Dilip Krishnan - 03 Feb 2005 13:20 GMT
Hello folke,
Yes but if you do that in the ASP.net process theoretically it will start
the access application in the server. It wont however because it will not
have permissions to do so. How is that in any way benefitial to u? May be
am missing something. Anyways to answer your question the ASP.net user doesnt
have permissions to do what you are wanting it to do
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> Thanks for your answer.
> Look at code below!
[quoted text clipped - 67 lines]
>>>>> I get the error message: Can't find file! ???
>>>>> I need to start appxxx from the ASP.NET app!