Shortcut in Windows 7

kikloo

New member
Local time
9:43 AM
Messages
24
Location
India
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

Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate
CPU
Intel Centrino Duo
Motherboard
IDK
Memory
3 GB
Graphics Card(s)
nVidia
Sound Card
IDK
Monitor(s) Displays
LCD
Hard Drives
80 GB
PSU
IDK
Case
IDK
Cooling
IDK
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Hi,

What is a difference between a symlink and a junction ?

Thanks.
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate
CPU
Intel Centrino Duo
Motherboard
IDK
Memory
3 GB
Graphics Card(s)
nVidia
Sound Card
IDK
Monitor(s) Displays
LCD
Hard Drives
80 GB
PSU
IDK
Case
IDK
Cooling
IDK

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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

Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate
CPU
Intel Centrino Duo
Motherboard
IDK
Memory
3 GB
Graphics Card(s)
nVidia
Sound Card
IDK
Monitor(s) Displays
LCD
Hard Drives
80 GB
PSU
IDK
Case
IDK
Cooling
IDK
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]] [B]link target[/B]
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
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]] [B]link target[/B]

Hi,

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

Thanks.
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate
CPU
Intel Centrino Duo
Motherboard
IDK
Memory
3 GB
Graphics Card(s)
nVidia
Sound Card
IDK
Monitor(s) Displays
LCD
Hard Drives
80 GB
PSU
IDK
Case
IDK
Cooling
IDK
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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]] [B]link target[/B]

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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
Hi,

I need htdocs folder in xampp becuase it has files which allows me to have a lot of utilities etc. which are stored in a subfolder in c:\xampp\htdocs folder.

The xampp application allows you to setup apache web server, php, mysql, filezilla ftp server etc. all in 1 single go, ready to use. Its just for development purposes and nothing much more. The htdocs folder in c:\xampp where we have to do all work is sort of a workspace. Apache webserver is configured to use that folder.

Thanks.
 

My Computer

Computer Manufacturer/Model Number
HP
OS
Windows 7 Ultimate
CPU
Intel Centrino Duo
Motherboard
IDK
Memory
3 GB
Graphics Card(s)
nVidia
Sound Card
IDK
Monitor(s) Displays
LCD
Hard Drives
80 GB
PSU
IDK
Case
IDK
Cooling
IDK
Back
Top