Jotero.com 3D-Scan and 3D Vermessung Forum Index
Jotero.com 3D-Scan and 3D Vermessung
Reply to topic
[offer] Batchscripts to switch between two versions
Dr. Kimble
Site Admin
Site Admin

Joined: 26 May 2006
Posts: 12
Location: Berlin/Germany
Reply with quote
Hello guys 'n gals!



It came to my attention that a lot of people would like to use

different versions (beta/retail) and would like to switch between

them easily. So I wrote a lil shellscript to do this ...



nb: This is working with the NTFS filesystem only, so if you use

FAT/FAT32 i'm sorry and you are oldschool. =)




1. First off, download junction and copy it to your windows dir

so you can access this tool everywhere. This tool will let you use

symbolic links (NTFS only) like linux ... etc.



2. Install two different Maxwell versions. After that is done, rename

the directories to a different name! You don't have to change the

MAXWELL_ROOT variable, I'll grab it from the environments ...



3. create a textfile with the extension .bat and copy the content

that I'll post below into it.



4. Change all vars on top to the right directorys.



5. Almost forgotten an important thing, the 3dsmax plugins

have to go into different dirs too and the dir that is used for the

"Maxwell_junction_plugin_dir" variable has to be in the 3dsmax

plugin.ini file!





After thinking about workflows, there are two versions

of the batchfile that you can choose from. The first one

will ask you what kinda version you wanna run, the second

will switch between the versions and will not ask. So the

second one is for people that do know what they are

doing. Razz Very Happy Very Happy Wink







This batchfile will let you choose between two versions

Code:


@echo off



rem ################### Variables to change ##################



SET Maxwell_beta_dir="x:\Maxwell_beta"

SET Maxwell_retail_dir="x:\Maxwell_retail"



SET Maxwell_junction_plugin_dir="x:\3dsMax\plugins\Maxwell"

SET Maxwell_beta_plugin_dir="x:\3dsMax\plugins\Maxwell_beta"

SET Maxwell_retail_plugin_dir="x:\3dsMax\plugins\Maxwell_retail"



rem ###########################################################





:start

CLS

SET Maxwell_version=

SET /P Maxwell_version=Choose between (r)etail or (b)eta:



IF '%Maxwell_version%'=='' goto grmpf

IF '%Maxwell_version%'=='b' goto beta

IF '%Maxwell_version%'=='r' goto retail





:grmpf

ECHO You should type 'r' or 'b' ... :P :D ;)

pause

GOTO start



:beta

junction -q -s %MAXWELL_ROOT% %Maxwell_beta_dir%

junction -q -s %Maxwell_junction_plugin_dir% %Maxwell_beta_plugin_dir%

GOTO end



:retail

junction -q -s %MAXWELL_ROOT% %Maxwell_retail_dir%

junction -q -s %Maxwell_junction_plugin_dir% %Maxwell_retail_plugin_dir%

GOTO end



:end







This batchfile will just switch between the two versions without asking anything

Code:


@echo off



rem ################### Variables to change ##################



SET Maxwell_beta_dir="x:\Maxwell_beta"

SET Maxwell_retail_dir="x:\Maxwell_retail"



SET Maxwell_junction_plugin_dir="x:\3dsMax\plugins\Maxwell"

SET Maxwell_beta_plugin_dir="x:\3dsMax\plugins\Maxwell_beta"

SET Maxwell_retail_plugin_dir="x:\3dsMax\plugins\Maxwell_retail"



rem ###########################################################



SET Maxwell_identifier=%MAXWELL_ROOT%\mxed.exe

CLS



IF exist %Maxwell_identifier% (

   GOTO beta

) ELSE (

   GOTO retail

)





:beta

junction -q -s %MAXWELL_ROOT% %Maxwell_beta_dir%

junction -q -s %Maxwell_junction_plugin_dir% %Maxwell_beta_plugin_dir%

GOTO end



:retail

junction -q -s %MAXWELL_ROOT% %Maxwell_retail_dir%

junction -q -s %Maxwell_junction_plugin_dir% %Maxwell_retail_plugin_dir%

GOTO end



:end





If I missed something ... sorry. ;o)







take care

Oleg
View user's profileSend private message
[offer] Batchscripts to switch between two versions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT + 1 Hour  
Page 1 of 1  

  
  
 Reply to topic