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?