Shortcut in Windows 7

Page 1 of 2 12 LastLast

  1. Posts : 24
    Windows 7 Ultimate
       #1

    Shortcut in Windows 7


    Hi,

    I have Windows 7 ultimate. I have installed a app. called Xampp in c:\xampp. It has a subfolder called htdocs in which i have to place my files in order to work with the app.

    Now my data is so much that i don't want to place it in there and instead i have all my data on another partition of the hard drive in a specific folder i.e: d:\chores

    I want to create a shortcut so that what ever i do in d:\chores is considered done in c:\xampp\htdocs. I mean that d:\chores should act like the files etc. are in c:\xampp\htdocs.

    This is easily possible in Linux but how to do the same in Windows ?

    Thanks.
      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    Well first delete htdocs. Then in a command prompt, mklink /J C:\xampp\htdocs D:\chores, That will create a junction, could also use a symlink if you wanted. Or you could just configure Apache to look in D:\chores instead.
      My Computer


  3. Posts : 24
    Windows 7 Ultimate
    Thread Starter
       #3

    Hi,

    What is a difference between a symlink and a junction ?

    Thanks.
      My Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4
      My Computer


  5. Posts : 24
    Windows 7 Ultimate
    Thread Starter
       #5

    Hi,

    When i am running this command: mklink /D d:\chores c:\xampp\htdocs then i get an error saying: You do not have sufficient privilege to perform this operation.

    What to do ?

    Thanks.
      My Computer


  6. Posts : 5,642
    Windows 10 Pro (x64)
       #6

    You also have the command backwards. Xampp must come before Chores. To create Symlinks you must run the command prompt as Administrator. One reason why I used a Junction.

    Code:
    mklink [[/D] | [/H] | [/J]] link target
      My Computer


  7. Posts : 1,261
    Windows 7 Professional 32-bit SP1
       #7

    kikloo said:
    Hi,

    When i am running this command: mklink /D d:\chores c:\xampp\htdocs then i get an error saying: You do not have sufficient privilege to perform this operation.

    What to do ?

    Thanks.
    run CMD with elevated priveledges: Click the Start Orb and type "CMD" into the search box (without quotes). In the search results, right-click CMD and select "Run as Administrator".

    Try the create juntion command again.
    Last edited by Dzomlija; 01 Dec 2009 at 11:29. Reason: Spelling
      My Computer


  8. Posts : 24
    Windows 7 Ultimate
    Thread Starter
       #8

    logicearth said:
    You also have the command backwards. Xampp must come before Chores. To create Symlinks you must run the command prompt as Administrator. One reason why I used a Junction.

    Code:
    mklink [[/D] | [/H] | [/J]] link target
    Hi,

    But i don't want to delete that folder coz it has files which are also required.

    Thanks.
      My Computer


  9. Posts : 5,642
    Windows 10 Pro (x64)
       #9

    You want your files stored at D:\chores do you not? The command you attempted to do, would have C:\xampp\htdocs as the REAL location and D:\chores would be the symlink.
      My Computer


  10. Posts : 1,261
    Windows 7 Professional 32-bit SP1
       #10

    kikloo said:
    logicearth said:
    You also have the command backwards. Xampp must come before Chores. To create Symlinks you must run the command prompt as Administrator. One reason why I used a Junction.

    Code:
    mklink [[/D] | [/H] | [/J]] link target
    Hi,

    But i don't want to delete that folder coz it has files which are also required.

    Thanks.
    Copy the file to "D:\chores", then follow the instruction to create the junction. As far as the XAMPP program is concerned, the original folder will stll exist. Thats the whole point of a junction.

    Although a must point out that any program that forces you to use a very specific folder to store it's data (without giving you the ability to customize the location of said folder) isn't worth using at all.

    What does this XAMPP program do?
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:24.
Find Us