Created
February 15, 2021 22:23
-
-
Save raganmd/36e3792c03f86382185b9ef69b609b43 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
@echo off | |
rem turn off echo | |
rem set TouchDesigner build numbers | |
set TOUCHVERSION=2021.10330 | |
rem set our project file target | |
set TOEFILE="dev-env.toe" | |
rem set the rest of our paths for executables | |
set TOUCHDIR=%PROGRAMFILES%\Derivative\TouchDesigner. | |
set TOUCHEXE=\bin\TouchDesigner.exe | |
rem combine our elements so we have a single path to our TouchDesigner.exe | |
set TOUCHPATH="%TOUCHDIR%%TOUCHVERSION%%TOUCHEXE%" | |
if exist %TOUCHPATH% goto :STARTPROJECT | |
echo Touch Version: %TOUCHVERSION% is not installed. | |
CHOICE /M "Download" | |
if %errorlevel% equ 1 goto :DOWNLOAD | |
if %errorlevel% equ 2 goto :eof | |
:DOWNLOAD | |
echo Downloading... | |
rem download version that isn't installed. | |
start "" https://download.derivative.ca/TouchDesigner.%TOUCHVERSION%.exe | |
goto :eof | |
:STARTPROJECT | |
rem start our project file with the target TD installation | |
start "" %TOUCHPATH% %TOEFILE% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment