@echo off REM Version: 1.0 REM Revit server installer script for exobim REM Usage: run this after download. it's possible that you have to run it as admin. REM Created by Peter Gyetvai: gyetpet@gmail.com with the help of the internet SET SERVERPATH=myoffice.com SET FOLDER2018=%programdata%\Autodesk\Revit Server 2018 SET FOLDER2019=%programdata%\Autodesk\Revit Server 2019 SET INI2018=%FOLDER2018%\Config\RSN.ini SET INI2019=%FOLDER2019%\Config\RSN.ini echo You have to restart Revit after running this script, or modifying your RSN.ini file echo This script will add the following path to your RSN.ini: echo %SERVERPATH% echo --- if exist "%FOLDER2018%" ( echo Revit 2018 installed if exist "%INI2018%" ( echo RSN.ini exists, skipping echo Modify your RSN.ini here: echo "%INI2018%" SET OK2018=no ) else ( echo Creating RSN.ini echo %SERVERPATH% > "%INI2018%" SET OK2018=ok ) ) else ( echo Revit 2018 not installed, skipping ) echo --- if exist "%FOLDER2019%" ( echo Revit 2019 installed if exist "%INI2019%" ( echo RSN.ini exists, skipping echo Modify your RSN.ini here: echo "%INI2019%" SET OK2019=no ) else ( echo Creating RSN.ini echo %SERVERPATH% > "%INI2019%" SET OK2019=pl ) ) else ( echo Revit 2019 not installed, skipping ) echo --- if %OK2018% EQU ok echo Successfully set up Revit 2018 if %OK2019% EQU ok echo Successfully set up Revit 2019 echo --- pause