removed 1.x option from playerinstaller

This commit is contained in:
2020-01-17 18:36:18 +01:00
parent cb993ed4d7
commit 894965bfce

View File

@@ -1,26 +1,19 @@
@echo off @echo off
REM Version: 1.0 REM Version: 1.1
REM Copies all dynamo files from subfolders to a selected folder REM Copies all dynamo files from subfolders to a selected folder
REM Created by Peter Gyetvai: gyetpet@gmail.com REM Created by Peter Gyetvai: gyetpet@gmail.com
REM REM
REM Usage: REM Usage:
REM DynamoPlayerInstaller <version> <folder> REM DynamoPlayerInstaller <folder>
REM Version: then dynamo version to copy. Possible values: 1, 2. Default: 2
REM Folder: The folder you set up for dynamo player. Default: Documents\DynamoPlayer REM Folder: The folder you set up for dynamo player. Default: Documents\DynamoPlayer
chcp 1250 chcp 1250
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
IF [%1]==[] ( IF [%1]==[] (
SET VERSION=2
) ELSE (
SET VERSION=%1
)
IF [%2]==[] (
SET FOLDER=%UserProfile%\Documents\DynamoPlayer SET FOLDER=%UserProfile%\Documents\DynamoPlayer
) ELSE ( ) ELSE (
SET FOLDER=%2 SET FOLDER=%1
) )
IF NOT EXIST %FOLDER% ( IF NOT EXIST %FOLDER% (
@@ -29,15 +22,24 @@ IF NOT EXIST %FOLDER% (
cd "%~dp0" cd "%~dp0"
(for /D /r %%f in (%VERSION%*x) do ( (for /D %%f in (*) do (
call :filecheck "%%f" set extra=
IF %%f==nodes set extra=True
IF %%f==src set extra=True
IF %%f==WIP set extra=True
if not DEFINED extra (
call :filecheck "%%f"
)
)) ))
EXIT /B EXIT /B
:filecheck :filecheck
set thefolder=%1 set thefolder=%1
for /R %thefolder% %%h in (*.dyn) do ( for /R %thefolder% %%h in (*.dyn) do (
echo %%h echo %%h
copy /y "%%h" "%FOLDER%" copy /y "%%h" "%FOLDER%"
) )
EXIT /B