UNPKG

1.09 kBapplication/x-msdownloadView Raw
1@ECHO OFF
2
3REM - Use full path of this batch file to determine root directory
4set root_path=%~f0
5set root_path=%root_path:~0,-27%
6
7REM - Check for parameter
8IF %1.==. GOTO Error
9
10REM - Check for OS. This script works in Vista or later.
11ver | findstr /i "5\.1\." > nul
12IF %ERRORLEVEL% EQU 0 GOTO XPNotSupported
13
14REM - Remove existing 'dev' directory (if present)
15rmdir %1\dev
16
17REM - Make symlink
18REM (doesn't work on XP - see instructions below)
19mklink /d %1\dev %root_path%
20
21GOTO Exit
22
23:Error
24ECHO Usage: setup_for_hacking.bat application_path
25ECHO Setup Brackets to use the HTML/CSS/JS files pulled from GitHub.
26ECHO Parameters: application_path - path that contains the Brackets application
27ECHO Example: setup_for_hacking.bat "c:\Program Files (x86)\Brackets Sprint 14"
28GOTO Exit
29
30:XPNotSupported
31ECHO Sorry, this script doesn't run in Windows XP.
32ECHO To enable hacking, use the junction tool (http://technet.microsoft.com/en-us/sysinternals/bb896768)
33ECHO as follows: junction.exe %1\dev %root_path%
34ECHO (in the folder containing Brackets.exe)
35
36:Exit