How to replace user name in string.format method


i want to replace my use name in config file

key as path c:\usrers\traju\documents

iam wring as c:\usrers{0}\documents

writing expression as string.format(in_config(path,environment.userName).tostring

can anyone help me

Hi @T_Y_Raju

Check out the video link

path is in my config file how to take that

Use this in the Config File Pathdata = c:\usrers\{0}\documents

Expression : String.Format(in_config("Pathdata").ToString,Environment.UserName)





try this

thank you it works now

Kindly close this topic by mark as solved @T_Y_Raju

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.