Last active
March 15, 2022 04:33
-
-
Save doituikhovai/5adbca45055c4457a9c587b44e642c61 to your computer and use it in GitHub Desktop.
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
- Create a file with notepad++ and save as file .bat | |
- Move .bat file to C:\Windows\System32 | |
Done! | |
## Step: | |
- Pass dir of destination to symlink to target varible(target) | |
- Pass dir of folder wanna symlink(dir) | |
- Pass app code(name) | |
Enjoy! | |
## Example: If you wanna symlink spop app to core: | |
# target: D:\Project\beeketing | |
# dir: D:\Project\spop | |
# name: spop | |
## Script: | |
@echo off | |
set /p target=Your target dir: | |
set /p dir=Your dir: | |
set /p name=Your app code: | |
mklink /J "%target%\apps\%name%" "%dir%\apps\%name%" | |
mklink /J "%dir%\node_modules" "%target%\node_modules" | |
mklink /J "%dir%\src" "%target%\src" | |
mklink "%dir%\package.json" "%target%\package.json" | |
mklink "%dir%\.eslintrc" "%target%\.eslintrc" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment