Created
February 14, 2017 20:26
-
-
Save H0R5E/1b2f915f9f4e44ed179614e4b54e4d41 to your computer and use it in GitHub Desktop.
Pre-load the DTOcean installation directory registry key
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 | |
IF [%1] == [] GOTO ASKUSER | |
SET FOLDER=%1 | |
GOTO :COMMONEXIT | |
:ASKUSER | |
SET /P FOLDER=Enter a folder name: | |
:COMMONEXIT | |
IF [%FOLDER%] == [] GOTO ASKUSER | |
ECHO. | |
ECHO Setting DTOcean installation folder to: %FOLDER% | |
ECHO. | |
SET /P DUMMY=Hit ENTER to write to registry (or CTRL-C to abort)...^ | |
REG ADD HKCU\Software\DTOcean /f /v INSTALL_DIR /t REG_SZ /d %FOLDER% | |
ECHO. | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment