Collections:
Substring of Windows Environment Variable
How to Get a Substring of a Windows Environment Variable? I need to pass a part of the variable value to JMeter.
✍: FYIcenter.com
You can Get a Substring of a Windows Environment Variable
by following this tutorial.
If you want to a substring of a Windows Environment Variable value, use the following syntax:
%varname:~start,length"
Try example commands listed below:
\fyicenter>echo %os% Windows_NT \fyicenter>echo %os:~0,7% Windows \fyicenter>echo %os:~8,2% NT \fyicenter>echo %os:~0,7% with %number_of_processors% processors Windows with 4 processors
Â
⇒ Windows Command to Aggregate Files
⇠Pass Windows Environment Variable to JMeter
⇑ Running JMeter in Command Line Mode
⇑⇑ Apache JMeter Tutorials
2017-12-04, 1740👍, 0💬
Popular Posts:
How to generate passwords? To help you to obtain some good passwords for testing purpose, FYIcenter....
How to convert a date and time to a standard format? Date and time can be displayed in a number of s...
Where to find test data generators? FYIcenter.com has prepared a number of test data generators for ...
How to Pass Windows Environment Variable to JMeter? I want to use Windows temporary folder environme...
How to valid IPv6 addresses? In order to help your programming or testing tasks, FYIcenter.com has d...