0% found this document useful (0 votes)
184 views7 pages

User Guide For The ResDir Utility

The ResDir Utility automates detection and repair of corrupted or missing files in the FactoryTalk Directory. It runs as a text-based console application and performs a health check of the FactoryTalk Directory, repairing issues if found. The utility can be run from a batch file on Windows startup to ensure the FactoryTalk Directory is healthy each time the computer starts up.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views7 pages

User Guide For The ResDir Utility

The ResDir Utility automates detection and repair of corrupted or missing files in the FactoryTalk Directory. It runs as a text-based console application and performs a health check of the FactoryTalk Directory, repairing issues if found. The utility can be run from a batch file on Windows startup to ensure the FactoryTalk Directory is healthy each time the computer starts up.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

User Guide for the ResDir Utility

In rare cases, customers have reported “Unable to load application” or “Fail to Load MER” messages
when running Machine Edition Station on a computer. This error message may indicate a problem with
the FactoryTalk Directory. The ResDir Utility has been created to automate the detection of corrupted or
missing files, as well as repair the FactoryTalk Directory.

User Interface and Parameters


The utility functions as a text based console application that runs a directory health check with optional
command line parameters. A batch file can be created to automate the utility to run the when the
system starts.

Parameters of the utility


Below is an example of the command line, and an explanation of the parameters used in the command
line.

Command line example:

ResDir /X /F /Local /Global /L “C:\MEStationShortcut\FactoryTalk View


ME Station.lnk”

Parameters:

 /X
o Used to enable exception logging
o When used, a log file will only be created when the FactoryTalk Directory is corrupt
o When not used, the log file will always be created
 /F
o
Used to enable exception logging
o
When used, the health check will be skipped, and the FactoryTalk Directory will be
repaired
o When not specified, the tool will perform a health check and repair the FactoryTalk
Directory only if it is found to be corrupt
 /Local
o Used to specify the Local Directory that should be repaired
 /Global
o Used to specify the Global Directory that should be repaired
 /L <path.lnk>
o Used to specify the path and ME Station shortcut that should be loaded at startup
When the utility is finished running, the log file can be found in the same directory as the utility itself.

Figure 1 – Directory of Log file

Typical Scenarios
The following scenarios can be resolved using this utility:

 An XML file for FactoryTalk Directory is corrupted.


o FTDSchema.xml
o FTDSchemaStrings.xml
 The System RnaD for the directory is corrupted.
o $Local.RnaD
o $System.RnaD
 FTD service failed.
Using the Utility
1. Start FactoryTalk View ME Station and load the desired runtime application.
2. Go to Terminal Settings > FactoryTalk View ME Station Startup.
3. Select Go to Configuration Mode and click OK.

Figure 2 – FactoryTalk View ME Station Startup

4. Open Windows Explorer, and browse to the Windows Startup folder.


a. It now contains a FactoryTalk View ME Station shortcut

Figure 3 – FTView ME Shortcut in the Windows Startup folder

5. Cut and paste this new shortcut into any other folder.
a. In this example, the shortcut is pasted into the folder that contains the ResDir utility
(e.g., C:\Users\Labuser\Desktop\ResDir)
b. Performing this step will stop the shortcut from running when Windows starts. Instead,
the utility must first run to evaluate and potentially repair the FactoryTalk Directory

Figure 4 – ME Station Shortcut in New Directory

6. Create a batch file with the command to launch the utility, and pass parameters that are
desired.
a. In this example, the batch file is named Run.bat

Figure 5 – Configuring the Batch file command line

C:\Users\Labuser\Desktop\ResDir\ResDir is the path where the ResDir.exe utility is


located

“C:\User\Labuser\Desktop\ResDir\FactoryTalk View ME Station.lnk” is the


path to the new shortcut.

7. Save and close the batch file.


8. Create a shortcut for this batch file, named RunResDir.bat, and move it to the Windows Startup
folder.

Figure 6 – Configure the batch command file

The utility is now configured to run when Windows starts.

9. Restart the computer.


10. When the computer is running, a command window will open, showing that the utility is
running.

Figure 7 – Running Utility

Utility Results
When the utility has run, a log file will be generated that has tracked the actions of the tool. This file can
be found in the same directory as the utility, and will be named [email protected], where xxx is the
timestamp.
Figure 8 – Log File Location

Utility Components
 ResDir.exe
o Utility executable
 StopFTDServices.dll
o Used to stop FTD Services
 Global folder
o Contains the files to replace the FactoryTalk Global directory. Once these files are
replaced, the FactoryTalk Directory Configuration Wizard will run to configure the
directory and update the files.

 Local Folder
o Contains the files to replace the FactoryTalk Local. Once these files are replaced, the
FactoryTalk Directory Configuration Wizard will run to configure the directory and update
the files.
Note: The Global and / or Local directory files will be replaced if a corruption is detected, or
the /F parameter is used in the command line
Figure 9 – Files in Global folder

You might also like