Created
May 10, 2018 09:41
-
-
Save lintmx/c2d11cb37a3d7fe1fca6dbc379c0ab75 to your computer and use it in GitHub Desktop.
link dir
This file contains 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 | |
set project_path=%1 | |
set public_path="\public" | |
set site_path="D:\Dev\sites" | |
set project_name="\t1" | |
set pro_path=%site_path%%project_name% | |
if exist %project_path% ( | |
if exist %pro_path% ( | |
rmdir /q /s %pro_path% | |
) | |
if exist %project_path%%public_path% ( | |
mklink /J %pro_path% %project_path% | |
) else ( | |
md %pro_path% | |
mklink /J %pro_path%%public_path% %project_path% | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment