Click here to Skip to main content
11,641,211 members (62,616 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
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
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2015
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