Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set capture file w/ 2 variables

Status
Not open for further replies.

Majaws2

Programmer
Jul 3, 2003
15
US
I am trying to set a capture file using more than one variable. Because the first comes from a text file that I use for many scripts the second varialbe would indicate what script this is.

In other words I set holdthis to as first variable from text file (801), I would like to set the second variable (jeff) to zip. So that my caputre is 801zip.cap

I tried many ways such as:

set capture file holdthis( &jeff)
set capture file holdthis & jeff

Can this be done?
 
You would use either the strcat or strfmt command to create the filename for the capture file from the individual strings, then use the set capture file command. In your case, strcat holdthis jeff should get all the necessary information in the holdthis variable.



aspect@aspectscripting.com
 
That did it, I tried to find that answer in my purple book (PP for win), but couldn't. I looked that command up now that you explained it to me.. Works great.. You are a great help.. I learn a bit more everyday.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top