Symlinks on Windows

From TYPO3Wiki

Jump to: navigation, search

<< Back to Installation basics or Windows

Contents

[edit] Using Junction

Here are two batch files that you can copy and paste into your favorite text editor and save under any name you like. Save them into your main TYPO3 directory.

These batch files require that you first install a free program called Junction in the WINNT directory. For XP or 2003 change WINNT to WINDOWS.

[edit] For the Quickstart Package

rem Recursively create a junction
"C:\WINNT\junction.exe" -s .\typo3\t3lib\ .\t3lib\
"C:\WINNT\junction.exe" -s .\typo3\gfx\ .\t3lib\gfx\
"C:\WINNT\junction.exe" -s .\tslib\ .\typo3\sysext\cms\tslib\

rem Copy the fonts instead of symlinking them
copy .\t3lib\fonts\vera.ttf .\t3lib\fonts\verdana.ttf
copy .\t3lib\fonts\nimbus.ttf .\t3lib\fonts\arial.ttf

rem Copy thumbs.php to typo3
copy .\t3lib\thumbs.php .\typo3\thumbs.php

This results in the following directory structure:

21.04.04 10:00 <DIR> .
21.04.04 10:00 <DIR> ..
21.04.04 09:48 <DIR> misc
21.04.04 09:49 <DIR> t3lib
21.04.04 10:00 <JUNCTION> tslib
21.04.04 10:00 <DIR> typo3

[edit] For the Dummy Package

rem Recursively create a junction

"C:\WINNT\junction.exe" -s .\typo3_src\ ..\typo3_src\
"C:\WINNT\junction.exe" -s .\t3lib\ ..\typo3_src\t3lib\
"C:\WINNT\junction.exe" -s .\typo3\ ..\typo3_src\typo3\
"C:\WINNT\junction.exe" -s .\tslib\ ..\typo3_src\typo3\sysext\cms\tslib\

This results in the following directory structure:

21.04.04 10:00 <DIR> .
21.04.04 10:00 <DIR> ..
20.04.04 23:16 clear.gif
21.04.04 09:44 <DIR> fileadmin
20.04.04 23:16 index.php
20.04.04 23:16 showpic.php
21.04.04 10:00 <JUNCTION> t3lib
21.04.04 10:00 <JUNCTION> tslib
21.04.04 10:00 <JUNCTION> typo3
21.04.04 09:44 <DIR> typo3conf
21.04.04 09:44 <DIR> typo3temp
21.04.04 10:00 <JUNCTION> typo3_src
21.04.04 09:44 <DIR> uploads

Also, make sure to copy the index.php file from the source directory into the dummy directory.

copy .\..\typo3_src\index.php index.php

[edit] Using Winbolic

If you don't like using the command line to create junctions, you can use a graphical program called Winbolic instead. Its GUI makes it easy to navigate and create or remove NTFS junctions or shell links.

Personal tools