Concatenate file name

Hi All,

Can we concatenate the below to get the file name . Here I want to get whatever version number it gets downloaded. Here in this case its (2)

in_Config(“Input_filename”).ToString+“-”+DateTime.Now.ToString(“yyyy-MM-dd”)+“*”+“.xlsx”

image

Hi just try using split function,am attaching below image for reference
File_Name as string variable store file namr
Assign String Output variable which give version

Output=File_Name.Split(“.“c)(0).Split(”(c)(1).Split(”)"c)(0)

@priyamehrotra26

Actually I want to capture total file name including (2) or (3)

Then assign one variable
Currentdd = System.DateTime.Now.Tostring(“dd”)
Output = File_Name.Split("."c)(0).tostring.Split(Currentdd)(1)

thn u can pass the variable Output

in_Config(“Input_filename”).ToString+“-”+DateTime.Now.ToString(“yyyy-MM-dd”)+Output+“.xlsx”

Refer screenshot
I hope i understand this

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