I have a raw string like this,
MasterFile_Name = r'C:\Users\ABC\X12345\DEF\File - Test.xlsx'
I want to pass the value of X12345 through a variable.To do that I am doing something like this
MyID = X12345
MasterFile_Name = r'C:\Users\ABC\' + MyID + '\DEF\File - Test.xlsx'
and
MasterFile_Name = r'C:\Users\ABC\' + MyID + r'\DEF\File - Test.xlsx'
They both are not working for me.
Kindly help me with this.