Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can I specify a relative path in the Silk4NET or Silk4J config file for the base state execution?

How can I specify a relative path in the Silk4NET or Silk4J config file for the base state execution?

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.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-09-19 10:11
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.