Click here to Skip to main content
15,746,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed one C#.Net application. In my application I have created a batch file which registers my Dll files in window 7 64 bit(SYSWOW64 folder). Everything is working correctly in XP environment but when I run this application in Windows 7 64 bit it gives error like “The file was loaded but the call to dllregisterserver failed with error code 0x80070005” related to dll registration functionality.

When I run batch file as administrator manually it works properly.

Is there any way to run batch file as administrator by programmatically?

How can I set that batch file run always as administrator?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900