User Guide For The ResDir Utility
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.
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.
Typical Scenarios
The following scenarios can be resolved using this utility:
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
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
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