Created
February 26, 2014 05:00
-
-
Save dz1984/9223794 to your computer and use it in GitHub Desktop.
使用 Symbolic link方式,讓source code與Web Server可以IoC (Inversion of control)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
REM setting the source and target folder path. | |
SET target=C:\wamp\www\ | |
SET source=C:\Projects\ | |
ECHO Target folder: %target% | |
ECHO Source folder: %source% | |
CD %target% | |
REM only catch the folder name | |
FOR /f %%i IN ('dir /B /AD %source%') DO mklink /D "%%i" "%source%%%i" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment