|
-
January 28th, 2009, 01:01 PM
#1
Win32Exception (0x80004005): Access is denied Error.
Hi All,
Need help urgently. I have the following code in my c# script:
foreach (System.Diagnostics.Process mBeforeExcelProc in mBeforeExcelProcs)
{
if (mBeforeExcelProc.ProcessName == "EXCEL")
{
mBeforeProcArray.Add(mBeforeExcelProc.Id.ToString());
}
}
It is giving the error mentioned in the title. It runs fine on windows2K, but give this access denied error in WindowsXP SP2. I am trying to capture all open .xls processes on the machine in the begining of the script, create an .xls spreadsheet and at the end close only this process, leaving all other .xls processes running.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|