Announcement

Collapse
No announcement yet.

how can i put custom variables to the file ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CJM
    replied
    Re: how can i put custom variables to the file ?

    Just and FYI:

    It is also necessarey to assign a variable name and the key name below that. I have included and example:

    **************example INI file*****************
    [Common]
    MyVar1=Some Variable Attribute
    MyVar2=Some Other Varialbe Attribute
    **************example INI file*****************

    Hope that helps someone out there...

    CJ M

    Leave a comment:


  • Darryl
    replied
    Re: how can i put custom variables to the file ?

    From your post, it sounds like your "myconfig.properties" is an INI file. In that case you could use a "Modify INI File" action with the "Set Value" option. For that action you would populate the "Value name: field with serverip and enter "Value data" as %EditBox1%. The same procedure would be used for the second one.

    If the file is not an INI file, you would need to use a series of Text File actions such as the "Find Text Line", "Get Text Line" and "Insert Text Line". So you would find it, read it into a variable, perform some string manipulate to acheive the desired text and then write it back to the text file.

    Hope that helps.

    Leave a comment:


  • scottlee
    replied
    Re: how can i put custom variables to the file ?

    Thank you adam.
    myconfig.properties file is text file.

    Suppose myconfig.properties file is that :
    serverip=%EditBox1%
    userid=%EditBox2%

    And i want replace '%EditBox1%' to %EditBox1% value like (xxx.xxx.xxx.xxx)
    Can you show me some examples?
    Thank you.

    Leave a comment:


  • Adam
    replied
    Re: how can i put custom variables to the file ?

    If myconfic.properties is a text file then you could just use one of our built in Text file actions to add the value of that variable to the file.

    If myconfig.properties is not a text file then an alternate way of adding that variable to the file would be in order.

    Leave a comment:


  • scottlee
    started a topic how can i put custom variables to the file ?

    how can i put custom variables to the file ?

    Hi everyone.
    My question is how can i put some variable to the file?
    I made user information screen and get some value like %EditBox1%.
    Now i want set %EditBox1% into myconfig.properties file.
    How can i automatically set the value into the file?
    thanks in advance.
Working...
X