Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Copying/replacing a file in the system dir?

Copying/replacing a file in the system dir?

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muammar
    wrote on last edited by
    #1

    Hi, Ever tried to copy into/replace a file inside System32?? I keep getting invalid path error message when it works just fine elsewhere. Please advise.

    P V 2 Replies Last reply
    0
    • M Muammar

      Hi, Ever tried to copy into/replace a file inside System32?? I keep getting invalid path error message when it works just fine elsewhere. Please advise.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      I assume you're using Vista or higher. Basically, your application doesn't have permissions to do anything inside protected directories. This is a good thing, and has been implemented like this for a reason.

      *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

      "Mind bleach! Send me mind bleach!" - Nagy Vilmos

      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

      V 1 Reply Last reply
      0
      • P Pete OHanlon

        I assume you're using Vista or higher. Basically, your application doesn't have permissions to do anything inside protected directories. This is a good thing, and has been implemented like this for a reason.

        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

        V Offline
        V Offline
        Vipin_Arora
        wrote on last edited by
        #3

        reason for my vote 5 is: I also think that it is the administrative rights problem...

        Happy Coding... :)

        1 Reply Last reply
        0
        • M Muammar

          Hi, Ever tried to copy into/replace a file inside System32?? I keep getting invalid path error message when it works just fine elsewhere. Please advise.

          V Offline
          V Offline
          Vipin_Arora
          wrote on last edited by
          #4

          make sure that you have administrative rights on the system..

          Happy Coding... :)

          L 1 Reply Last reply
          0
          • V Vipin_Arora

            make sure that you have administrative rights on the system..

            Happy Coding... :)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Even if you have admin-rights, this is typically not done, unless you're trying to hide something from the user. The folder contains system-files for Windows, application-level shit should be kept apart.

            Bastard Programmer from Hell :suss:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups