Skip to content

Instantly share code, notes, and snippets.

@raganmd
Created February 15, 2021 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/36e3792c03f86382185b9ef69b609b43 to your computer and use it in GitHub Desktop.
Save raganmd/36e3792c03f86382185b9ef69b609b43 to your computer and use it in GitHub Desktop.
@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