:: :: This batch file will create a new xconnect.ini with :: ConnectionPath set to the value of the command line parameter. :: If xconnect.ini exists, it will be renamed to xconnect.ini.bak :: If xconnect.ini.bak exists, it will be removed. :: @echo off if not exist xconnect.ini goto create_file if not exist xconnect.ini.bak goto rename_file del /F xconnect.ini.bak echo ** Removed existing xconnect.ini.bak ** :rename_file rename xconnect.ini xconnect.ini.bak echo ** Renamed existing xconnect.ini to xconnect.ini.bak ** :create_file echo [General] > xconnect.ini echo ConnectionPath=%1 >> xconnect.ini echo ** Created new xconnect.ini with ConnectionPath=%1 ** echo ** makeini.bat finished ** exit