Using mklink /h results in “Access is denied.”Access is denied error, when I mklink on Windows 7How to...

Why do we call complex numbers “numbers” but we don’t consider 2-vectors numbers?

Tabular environment - text vertically positions itself by bottom of tikz picture in adjacent cell

What would be the most expensive material to an intergalactic society?

Having the player face themselves after the mid-game

Unidentified signals on FT8 frequencies

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

What do you call someone who likes to pick fights?

How spaceships determine each other's mass in space?

What is better: yes / no radio, or simple checkbox?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Rationale to prefer local variables over instance variables?

How do you make a gun that shoots melee weapons and/or swords?

Is there a math expression equivalent to the conditional ternary operator?

What does it take to become a wilderness skills guide as a business?

Short SF story. Females use stingers to implant eggs in yearfathers

What exactly is the meaning of "fine wine"?

Will the concrete slab in a partially heated shed conduct a lot of heat to the unconditioned area?

Does the US political system, in principle, allow for a no-party system?

Why does a car's steering wheel get lighter with increasing speed

An Undercover Army

Propulsion Systems

How to educate team mate to take screenshots for bugs with out unwanted stuff

What can I do if someone tampers with my SSH public key?

Can I challenge the interviewer to give me a proper technical feedback?



Using mklink /h results in “Access is denied.”


Access is denied error, when I mklink on Windows 7How to synchronize directories outside the Google Drive directoryAccess is denied error, when I mklink on Windows 7Batch delete: Access is deniedAccess denied for another OS filesHow to create a hard link in Windows using mklink command?“Access is denied.” to AdministratorAccess denied to C:UsersPublicDesktopVirtualbox VMmanage cpuidset - access deniedmklink directory junctions are inaccessible on Windows 10Windows Time not synchronizing - “Access is denied” errorAccess denied renaming my user folder













32















From command prompt with Administrator privilages:



c:>mklink /h c:dirA c:UsersPiotrdirB
Access is denied.


I'm on Vista x64. Using /j or /d instead of /h works. What's the problem?



Related:



Access is denied error, when I mklink on Windows 7.










share|improve this question

























  • Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

    – jinglesthula
    Jul 2 '14 at 16:12
















32















From command prompt with Administrator privilages:



c:>mklink /h c:dirA c:UsersPiotrdirB
Access is denied.


I'm on Vista x64. Using /j or /d instead of /h works. What's the problem?



Related:



Access is denied error, when I mklink on Windows 7.










share|improve this question

























  • Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

    – jinglesthula
    Jul 2 '14 at 16:12














32












32








32


4






From command prompt with Administrator privilages:



c:>mklink /h c:dirA c:UsersPiotrdirB
Access is denied.


I'm on Vista x64. Using /j or /d instead of /h works. What's the problem?



Related:



Access is denied error, when I mklink on Windows 7.










share|improve this question
















From command prompt with Administrator privilages:



c:>mklink /h c:dirA c:UsersPiotrdirB
Access is denied.


I'm on Vista x64. Using /j or /d instead of /h works. What's the problem?



Related:



Access is denied error, when I mklink on Windows 7.







windows ntfs hardlink mklink






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 20 '17 at 10:17









Community

1




1










asked Mar 29 '11 at 21:14









Piotr DobrogostPiotr Dobrogost

2,334134669




2,334134669













  • Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

    – jinglesthula
    Jul 2 '14 at 16:12



















  • Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

    – jinglesthula
    Jul 2 '14 at 16:12

















Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

– jinglesthula
Jul 2 '14 at 16:12





Not sure if this is what you're after, but I tried mklink w/o any flags to try to link a directory and it didn't give me what I wanted. I tried using the D flag and that seemed to work (not sure if that's different than d or the default, which some ms docs said was 'symbolic').

– jinglesthula
Jul 2 '14 at 16:12










4 Answers
4






active

oldest

votes


















43














Hard links can only be used for files, not directories.



References:
MSDN: Hard Links and Junctions, <1>, and <2>






share|improve this answer


























  • I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

    – Mahdi Rafatjah
    May 27 '16 at 12:22








  • 3





    "Access is denied."... Not the most helpful error message here.

    – P-Gn
    Jun 11 '18 at 16:44





















13














You can use the /j switch to create a directory soft link. Be careful with the del command. To remove link to directory use the rmdir command, as del will delete all files in the directory the link points to.






share|improve this answer

































    2














    As far as I know hard links are allowed for files only, not directories. http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx






    share|improve this answer































      0














      I had the same issue: check that the file or folder that you are trying to create doesn't already exist (c:dirA).






      share|improve this answer



















      • 1





        Folder c:dirA does not exist.

        – Piotr Dobrogost
        Apr 8 '11 at 21:15











      • OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

        – David d C e Freitas
        Apr 9 '11 at 7:19






      • 1





        I see nothing special about c: in this case.

        – Piotr Dobrogost
        Apr 9 '11 at 13:50











      • Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

        – David d C e Freitas
        Mar 19 '17 at 17:58













      • @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

        – David d C e Freitas
        Mar 23 '17 at 20:43











      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f264181%2fusing-mklink-h-results-in-access-is-denied%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      43














      Hard links can only be used for files, not directories.



      References:
      MSDN: Hard Links and Junctions, <1>, and <2>






      share|improve this answer


























      • I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

        – Mahdi Rafatjah
        May 27 '16 at 12:22








      • 3





        "Access is denied."... Not the most helpful error message here.

        – P-Gn
        Jun 11 '18 at 16:44


















      43














      Hard links can only be used for files, not directories.



      References:
      MSDN: Hard Links and Junctions, <1>, and <2>






      share|improve this answer


























      • I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

        – Mahdi Rafatjah
        May 27 '16 at 12:22








      • 3





        "Access is denied."... Not the most helpful error message here.

        – P-Gn
        Jun 11 '18 at 16:44
















      43












      43








      43







      Hard links can only be used for files, not directories.



      References:
      MSDN: Hard Links and Junctions, <1>, and <2>






      share|improve this answer















      Hard links can only be used for files, not directories.



      References:
      MSDN: Hard Links and Junctions, <1>, and <2>







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 12 '11 at 7:16

























      answered Apr 11 '11 at 10:30









      David d C e FreitasDavid d C e Freitas

      2,87331927




      2,87331927













      • I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

        – Mahdi Rafatjah
        May 27 '16 at 12:22








      • 3





        "Access is denied."... Not the most helpful error message here.

        – P-Gn
        Jun 11 '18 at 16:44





















      • I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

        – Mahdi Rafatjah
        May 27 '16 at 12:22








      • 3





        "Access is denied."... Not the most helpful error message here.

        – P-Gn
        Jun 11 '18 at 16:44



















      I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

      – Mahdi Rafatjah
      May 27 '16 at 12:22







      I did create a hard link for a folder once before. i guess it wasn't hard link it was a /d . it will do the exact for me.

      – Mahdi Rafatjah
      May 27 '16 at 12:22






      3




      3





      "Access is denied."... Not the most helpful error message here.

      – P-Gn
      Jun 11 '18 at 16:44







      "Access is denied."... Not the most helpful error message here.

      – P-Gn
      Jun 11 '18 at 16:44















      13














      You can use the /j switch to create a directory soft link. Be careful with the del command. To remove link to directory use the rmdir command, as del will delete all files in the directory the link points to.






      share|improve this answer






























        13














        You can use the /j switch to create a directory soft link. Be careful with the del command. To remove link to directory use the rmdir command, as del will delete all files in the directory the link points to.






        share|improve this answer




























          13












          13








          13







          You can use the /j switch to create a directory soft link. Be careful with the del command. To remove link to directory use the rmdir command, as del will delete all files in the directory the link points to.






          share|improve this answer















          You can use the /j switch to create a directory soft link. Be careful with the del command. To remove link to directory use the rmdir command, as del will delete all files in the directory the link points to.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 10 hours ago









          DavidPostill

          106k26228263




          106k26228263










          answered Aug 25 '12 at 7:12









          labiollabiol

          13912




          13912























              2














              As far as I know hard links are allowed for files only, not directories. http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx






              share|improve this answer




























                2














                As far as I know hard links are allowed for files only, not directories. http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx






                share|improve this answer


























                  2












                  2








                  2







                  As far as I know hard links are allowed for files only, not directories. http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx






                  share|improve this answer













                  As far as I know hard links are allowed for files only, not directories. http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 8 '11 at 16:47









                  ZordZord

                  211




                  211























                      0














                      I had the same issue: check that the file or folder that you are trying to create doesn't already exist (c:dirA).






                      share|improve this answer



















                      • 1





                        Folder c:dirA does not exist.

                        – Piotr Dobrogost
                        Apr 8 '11 at 21:15











                      • OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                        – David d C e Freitas
                        Apr 9 '11 at 7:19






                      • 1





                        I see nothing special about c: in this case.

                        – Piotr Dobrogost
                        Apr 9 '11 at 13:50











                      • Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                        – David d C e Freitas
                        Mar 19 '17 at 17:58













                      • @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                        – David d C e Freitas
                        Mar 23 '17 at 20:43
















                      0














                      I had the same issue: check that the file or folder that you are trying to create doesn't already exist (c:dirA).






                      share|improve this answer



















                      • 1





                        Folder c:dirA does not exist.

                        – Piotr Dobrogost
                        Apr 8 '11 at 21:15











                      • OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                        – David d C e Freitas
                        Apr 9 '11 at 7:19






                      • 1





                        I see nothing special about c: in this case.

                        – Piotr Dobrogost
                        Apr 9 '11 at 13:50











                      • Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                        – David d C e Freitas
                        Mar 19 '17 at 17:58













                      • @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                        – David d C e Freitas
                        Mar 23 '17 at 20:43














                      0












                      0








                      0







                      I had the same issue: check that the file or folder that you are trying to create doesn't already exist (c:dirA).






                      share|improve this answer













                      I had the same issue: check that the file or folder that you are trying to create doesn't already exist (c:dirA).







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Apr 8 '11 at 18:59









                      David d C e FreitasDavid d C e Freitas

                      2,87331927




                      2,87331927








                      • 1





                        Folder c:dirA does not exist.

                        – Piotr Dobrogost
                        Apr 8 '11 at 21:15











                      • OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                        – David d C e Freitas
                        Apr 9 '11 at 7:19






                      • 1





                        I see nothing special about c: in this case.

                        – Piotr Dobrogost
                        Apr 9 '11 at 13:50











                      • Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                        – David d C e Freitas
                        Mar 19 '17 at 17:58













                      • @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                        – David d C e Freitas
                        Mar 23 '17 at 20:43














                      • 1





                        Folder c:dirA does not exist.

                        – Piotr Dobrogost
                        Apr 8 '11 at 21:15











                      • OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                        – David d C e Freitas
                        Apr 9 '11 at 7:19






                      • 1





                        I see nothing special about c: in this case.

                        – Piotr Dobrogost
                        Apr 9 '11 at 13:50











                      • Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                        – David d C e Freitas
                        Mar 19 '17 at 17:58













                      • @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                        – David d C e Freitas
                        Mar 23 '17 at 20:43








                      1




                      1





                      Folder c:dirA does not exist.

                      – Piotr Dobrogost
                      Apr 8 '11 at 21:15





                      Folder c:dirA does not exist.

                      – Piotr Dobrogost
                      Apr 8 '11 at 21:15













                      OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                      – David d C e Freitas
                      Apr 9 '11 at 7:19





                      OK, in this case, it's probably because it's being created on the root of c:, see if creating it in another directory helps?

                      – David d C e Freitas
                      Apr 9 '11 at 7:19




                      1




                      1





                      I see nothing special about c: in this case.

                      – Piotr Dobrogost
                      Apr 9 '11 at 13:50





                      I see nothing special about c: in this case.

                      – Piotr Dobrogost
                      Apr 9 '11 at 13:50













                      Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                      – David d C e Freitas
                      Mar 19 '17 at 17:58







                      Permissions on the root of the drive (C:) are slightly different to normal user folders, as it's a sort of "system" area in windows.

                      – David d C e Freitas
                      Mar 19 '17 at 17:58















                      @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                      – David d C e Freitas
                      Mar 23 '17 at 20:43





                      @fnt Oh, because it's two different possible reasons or fixes for the issue. One more popular than the other.

                      – David d C e Freitas
                      Mar 23 '17 at 20:43


















                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f264181%2fusing-mklink-h-results-in-access-is-denied%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                      VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                      Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...