- Mon Jun 12, 2006 3:37 am
#160731
Well, its been a LONG time since I've done a batch file, but after a bit of a refresher, here goes:
First you have to determine the short Path (dos) of all of your directories since batch files do not work with long path names. You can figure these out by using the dir /x /p command (the /x switch will show you the short name, and the /p will pause the listing).
So, for example, my short path for my Maxwell directory is:
c:\Progra~2\Nextli~1\Maxwell
I've created two additional folders, one for Beta, one for V1 and they are:
c:\Progra~2\Nextli~1\Maxwel~1
(for my Beta Directory)
and
c:\Progra~2\Nextli~1\Maxwel~2
(for my V1 directory)
NOTE: These may be different on your system, depending on what order you create the directories.
I've copied full installations of each version in the appropriate directory (to include the plugin for the respective version)
Now, this first batch file - which I'll call LoadBeta.bat, will do just that, install the Beta version.
First you want to get rid of the existing Maxwell folder. The easiest way to do this is with the following command:
rd c:\Progra~2\Nextli~1\Maxwell /s /q
This will silently (/q) delete the entire Maxwell directory and all sub-directories and files (/s).
Next, we need to copy all files and sub-folders from my Beta directory into a new Maxwell\ folder:
xcopy c:\Progra~2\Nextli~1\Maxwel~1\*.* c:\Progra~2\Nextli~1\Maxwell\*.* /e
Then you want to copy the plugin from your Beta directory into your 3ds Max stdplugs directory (overwriting the existing one)
copy c:\Progra~2\Nextli~1\Maxwel~1\maxwell.dlr e:\3dsMax8\stdplugs\*.* /y
(the /y switch will overwrite the existing file without a prompt)
And that's it! So, your entire batch file will look like this:
rd c:\Progra~2\Nextli~1\Maxwell /s /q
xcopy c:\Progra~2\Nextli~1\Maxwel~1\*.* c:\Progra~2\Nextli~1\Maxwell\*.* /e
copy c:\Progra~2\Nextli~1\Maxwel~1\maxwell.dlr e:\3dsMax8\stdplugs\*.* /y
Make sure you make backups in a separate location for all of your directories and files - in case you mess up.
Simply type the batchfile in notepad, and save it onto your desktop (or wherever), making sure you give it the extention .bat
Then you can copy this batch file to create a LoadV1.bat, and simply update the text to something like this:
rd c:\Progra~2\Nextli~1\Maxwell /s /q
xcopy c:\Progra~2\Nextli~1\Maxwel~2\*.* c:\Progra~2\Nextli~1\Maxwell\*.* /e
copy c:\Progra~2\Nextli~1\Maxwel~2\maxwell.dlr e:\3dsMax8\stdplugs\*.* /y
REMEMBER: your short path names will be different from mine. It's very important that you determine exactly what yours are before putting together the batch files.
Also, if you are making your own mxm material files, save them in a separate place than in the default Maxwell material database folder. In fact, it would be a good idea to copy all existing ones to somewhere in your 3dsMax folder - that way you wont lose them everytime you switch versions
I'm assuming that currently you have V1 installed. Once you have copied all files, subdirectories and V1 plugin into your MaxwellV1 folder, do an uninstall of V1. Then to a complete Beta installation and license it correctly while it's still in the Maxwell\ directory. Only then copy it to your MaxwellBeta\ folder (along with the Beta plugin).
"Skill without imagination is craftsmanship and gives us many useful objects such as wickerwork picnic baskets. Imagination without skill gives us modern art." - Tom Stoppard
My modern art gallery at:
http://nws.carbonmade.com/