Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Shortcut in Windows 7


01 Dec 2009   #1

Windows 7 Ultimate
 
 
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 System SpecsSystem Spec
.

01 Dec 2009   #2

Windows 8.1 Pro (x64)
 
 

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 System SpecsSystem Spec
01 Dec 2009   #3

Windows 7 Ultimate
 
 

Hi,

What is a difference between a symlink and a junction ?

Thanks.
My System SpecsSystem Spec
.


01 Dec 2009   #4

Windows 8.1 Pro (x64)
 
 

My System SpecsSystem Spec
01 Dec 2009   #5

Windows 7 Ultimate
 
 

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 System SpecsSystem Spec
01 Dec 2009   #6

Windows 8.1 Pro (x64)
 
 

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 System SpecsSystem Spec
01 Dec 2009   #7

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by kikloo View Post
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.
My System SpecsSystem Spec
01 Dec 2009   #8

Windows 7 Ultimate
 
 

Quote   Quote: Originally Posted by logicearth View Post
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 System SpecsSystem Spec
01 Dec 2009   #9

Windows 8.1 Pro (x64)
 
 

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 System SpecsSystem Spec
01 Dec 2009   #10

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by kikloo View Post
Quote   Quote: Originally Posted by logicearth View Post
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 System SpecsSystem Spec
Reply

 Shortcut in Windows 7




Thread Tools



Similar help and support threads for2: Shortcut in Windows 7
Thread Forum
Shortcut Keys for Windows 7 Tutorials
Windows Shortcut Arrow Editor - Remove or change the shortcut arrow Free Developer Programs and Projects
Keyboard shortcut for Context Menu->New Shortcut General Discussion
Windows 7 shortcut not working ....:( General Discussion
Creating a shortcut without - shortcut written after the original name General Discussion
Solved Windows 7 Desktop Shortcut bar General Discussion
SHortcut interference in Windows 7 General Discussion

Our Sites

Site Links

About Us

Find 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 09:15 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33