'''WINDOWS XP:''' C:\Documents and Settings\''username''\SmartSimple\INSTANCE_A<br>
'''WINDOWS XP:''' C:\Documents and Settings\''username''\SmartSimple\INSTANCE_B</blockquote>
Taking into consideration that users could be running different versions of Windows and computers may be shared amongst multiple users requiring the batch file to work with multiple profiles, it is recommended you make use of [http://ss64.com/nt/syntax-variables.html Windows Environment Variables] to allow for the batch files to work in any environment of Windows.
The SETTING.INI file saves in the following folder:<br>
'''%APPDATA%\SmartSimple'''
And the multiple configurations are stored in a SmartSimple folder created within the user’s profile:<br>
'''%USERPROFILE%'''
If you paste the above into your Windows Run box it will direct you to the correct path regardless of the version of Windows you are running (assuming your version of Windows is no earlier than 2000).
In our example, there are only two instances to switch between, but the batch file can be modified to work with any number of instances.
With the configuration complete, the SmartSwitch file will then enable the user to switch quickly between the instances using a menu. The batch file closes instantly after the copy is completed.
== Sample Smart Switch Batch File ==
<pre>
@ECHO OFF
CLS
:MENU
ECHO.
ECHO.
ECHO.
ECHO .....................................
ECHO . SMARTSIMPLE INSTANCE QUICK SWITCH .
ECHO .....................................
ECHO.
ECHO If you haven't already, ensure that you have closed out of all
ECHO Microsoft Office applications. This includes Word, Outlook, Excel
ECHO PowerPoint and Access.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO PRESS 1 or 2 to select your instance, or 3 to EXIT.
ECHO.
ECHO.
ECHO 1 - INSTANCE A
ECHO 2 - INSTANCE B
ECHO 3 - EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
IF %M%==1 GOTO INST_A
IF %M%==2 GOTO INST_B
IF %M%==3 GOTO EOF
:INST_A
ECHO.
XCOPY "%USERPROFILE%\SMARTSIMPLE\INSTANCE_A\SETTING.INI" "%APPDATA%\SmartSimple\SETTING.INI" /Q /R /Y
CLS
GOTO EOF
:INST_B
ECHO.
XCOPY "%USERPROFILE%\SMARTSIMPLE\INSTANCE_B\SETTING.INI" "%APPDATA%\SmartSimple\SETTING.INI" /Q /R /Y
CLS
GOTO EOF
:EOF
CLS
</pre>