Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sir,

I used following code to create a file in C:\Windows\System32.


VB
IO.File.WriteAllText("C:\Windows\System32/ako.dll", "tbp.text")


But program needs administrator rights to procees the above code. So I set it

XML
<requestedExecutionLevel  level="asInvoker" uiAccess="false" />


to

XML
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />


Everything works fine but now I am facing another problem. I want to open a URL in a browser.

So I used the following code.

VB
System.Diagnostics.Process.Start("http://zusoftcreators.eu.pn")


But when program process the above code it gives me an error:

VB
Class not registered.


But when I start program without administrator rights then it works fine.


Help me please.
Posted
Comments
ZurdoDev 16-Jul-13 7:54am    
What does the WriteAllText have to do with anything?
Also, it seems you have your answer. You need permissions to do what you are trying. What is the question?

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