The contents of the config.file below demonstrates how to specify a relative path to an executable: ?xml version="1.0" encoding="UTF-8"? recorderProject version="12.0" applicationConfiguration moduleNamePattern *\notepad.exe /moduleNamePattern commandLinePattern/ baseStateInfo logicalName Untitled - Notepad /logicalName executable %systemroot%\system32\notepad.exe /executable commandLineArguments/ workingDirectory %systemroot%\system32 /workingDirectory className Window /className locator Untitled - Notepad /locator /baseStateInfo /applicationConfiguration agentOptions/ /recorderProject Where %Systemroot% is a relative path to “C:\Windows”. You can also specify your own relative paths by simply creating a SYSTEM Environmental Variable on your machine as detailed below: 1. Select Computer from the Start menu 2. Choose System Properties from the context menu 3. Click Advanced System Settings Advanced tab 4. Click on Environment Variables, under System Variables, press “New” 5. For example, I could create a System variable named “SilkTest” which has a value of: C:\Program Files (x86)\Silk\SilkTest.
↧