2 Replies - 148 Views - Last Post: 15 August 2012 - 11:04 AM Rate Topic: -----

#1 Eng.Khalid  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-August 12

help me to modify a file without running as administrator please

Posted 15 August 2012 - 10:28 AM

hi,

I am trying to modify hosts file with vb.net

but I get "Access to the path 'C:\Windows\system32\drivers\etc\hosts' is denied."

I do not want to run the application as administrator

is there a code to allow me modify this file?
Is This A Good Question/Topic? 0
  • +

Replies To: help me to modify a file without running as administrator please

#2 tlhIn`toq  Icon User is offline

  • Closing in on 5,000
  • member icon

Reputation: 4928
  • View blog
  • Posts: 10,465
  • Joined: 02-June 10

Re: help me to modify a file without running as administrator please

Posted 15 August 2012 - 10:51 AM

Sorry. If you don't have those privileges we're not going to help you hack the security at your work/school/library/whatever.

Talk to the admin of your system if you have a legitimate reason for this.
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 6463
  • View blog
  • Posts: 23,504
  • Joined: 12-June 08

Re: help me to modify a file without running as administrator please

Posted 15 August 2012 - 11:04 AM

The klingon's right, and I will be closing this post. OP - if you are unclear on the "no malicious code/activity" bit shoot me a pm.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1