You need to create the MKIntools.cmd file, which calls the Rootdrv.cmd file to ensure the user has a home folder and also checks whether a copy of the Intools.ini file resides in the home folder. If not, it makes a copy of the Intools.ini file (which is located in the \SmartPlant\Instrumentation folder path and was earlier renamed to Intools.ini.orig), and places it in the user's home folder.
-
In a plain text editor such as Notepad, create an empty file and name it MKIntools.cmd
-
Copy the following script to MKIntools.cmd:
@Echo Off Call RootDrv.Cmd If Not Exist "%RootDrive%\SmartPlant\Instrumentation" GoTo
NoIn REM Otherwise show message REM Check if INI file is there :NoINI If Not Exist
"%RootDrive%\ SmartPlant\Instrumentation\intools.ini" Copy "C:\SmartPlant\Instrumentation\intools.ini.orig"
%RootDrive%\SmartPlant\Instrumentation\intools.ini GoTo ShowMsg REM echo There is
no SmartPlant\Instrumentation sub-folder path in %HomeDrive%%HomePath% :NoIn REM echo
INTOOLS sub-folders do not exist in %RootDrive% md %RootDrive%\SmartPlant\Instrumentation
GoTo NoINI :ShowMsg MSG%USERNAME% /TIME:1 Your SmartPlant\Instrumentation sub-folder
has been set to
RootDrive%\SmartPlant\Instrumentation.