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
kikloo

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
logicearth

Windows 10 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
kikloo

Windows 7 Ultimate
 
 

Hi,

What is a difference between a symlink and a junction ?

Thanks.
My System SpecsSystem Spec
.

01 Dec 2009   #4
logicearth

Windows 10 Pro (x64)
 
 

My System SpecsSystem Spec
01 Dec 2009   #5
kikloo

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
logicearth

Windows 10 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
Dzomlija

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
kikloo

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
logicearth

Windows 10 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
Dzomlija

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
Thread Forum
cmd.exe not working from shortcut windows 7
I can run cmd.exe from c:\windows\system32 without a problem. However if I run a shortcut pointing to c:\windows\system32\cmd.exe it doesn't appear on the screen or under applications in Task Manager. Although it is listed under processes on Task Manager.
General Discussion
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
Shut Down Windows Shortcut
How to Create a "Shut Down Windows" Shortcut in Windows 7 This will show you how to create a Shut Down Windows shortcut to use to select to either Switch user, Log off, Restart, Sleep, Hibernate, or Shutdown in Windows 7. Normally you can press Alt+F4 while the desktop is in focus to also...
Tutorials
Creating a shortcut without - shortcut written after the original name
as the titel declares, is there any patch or something to make Windows 7 shortcuts not rename theirselves to "application.exe - shortcut" but rename theirselves into just "application.exe"? I find it very annoying having to erase " - shortcut" from the name all the time.
General Discussion
SHortcut interference in Windows 7
Hi everyone, i have encountered a very annoying issue recently. I'm a graphic designer and shortcut lover, recently for some reason one of the most common Adobe shortcuts - ctrl+alt+shift+s - made my komputer swith off...ehhhh?!! I'm not sure what happened there, but if anyone of you know how to...
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 04:02.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App