Click here to Skip to main content
13,041,859 members (62,380 online)
Rate this:
Please Sign up or sign in to vote.
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?
Posted 15-Jan-13 22:30pm

1 solution

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100