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 / C++ / MFC
  4. Writefile() fun fails in OS drive of vista.

Writefile() fun fails in OS drive of vista.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialhelpquestion
7 Posts 5 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.
  • C Offline
    C Offline
    C myLife
    wrote on last edited by
    #1

    Hi All, I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem? :(

    N _ K M 4 Replies Last reply
    0
    • C C myLife

      Hi All, I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem? :(

      N Offline
      N Offline
      norish
      wrote on last edited by
      #2

      Did you check the return code of GetLastError()?

      1 Reply Last reply
      0
      • C C myLife

        Hi All, I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem? :(

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Are you doing it programaticaly. If so your program will need elevated privileges.

        «_Superman_» I love work. It gives me something to do between weekends.

        C 1 Reply Last reply
        0
        • _ _Superman_

          Are you doing it programaticaly. If so your program will need elevated privileges.

          «_Superman_» I love work. It gives me something to do between weekends.

          C Offline
          C Offline
          C myLife
          wrote on last edited by
          #4

          yA i DID EVERY THING. eRROR CODE 5 : aCCESS IS DENIED. And the code I am running with admin priviledge. This problem is only with the OS drive not with other partitions.

          1 Reply Last reply
          0
          • C C myLife

            Hi All, I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem? :(

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            i guess you exe hasnt the rights to write in such location. Do writing in a user directory. ->GetFolderPath()

            Press F1 for help or google it. Greetings from Germany

            1 Reply Last reply
            0
            • C C myLife

              Hi All, I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem? :(

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #6

              Where exactly is the file you're trying to write to? Do you have privileges to write to the file?

              C 1 Reply Last reply
              0
              • M Michael Dunn

                Where exactly is the file you're trying to write to? Do you have privileges to write to the file?

                C Offline
                C Offline
                C myLife
                wrote on last edited by
                #7

                If you understand the metadata area of a file($MFT area)of a particular file , that is the location where I have to modify some values of a OS drive. But windows is not giving me permission to write at low level.

                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