Skip to content

Instantly share code, notes, and snippets.

@lintmx
Created May 10, 2018 09:41
Show Gist options
  • Save lintmx/c2d11cb37a3d7fe1fca6dbc379c0ab75 to your computer and use it in GitHub Desktop.
Save lintmx/c2d11cb37a3d7fe1fca6dbc379c0ab75 to your computer and use it in GitHub Desktop.
link dir
@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