Hopefully someone can help me on this:
I have a batchfile where I want to combine Variables and include a function with a Variable number for the concatenate - for better understanding see attached script:
set vSourcenm=tester.txt
Defines a Variable of the Filetype like ".txt"
set vTargettyp=%vSourcenm:~4%
set vDateTimeStamp=21062016_0908 (Simplified - sets the Date and Time)
set str_len=10 (this one is counted with a loop)
set vTargetnm=%vSourcenm:~0,-%str_len%%_%vDateTimeStamp%%vTargettyp%
The Output of vTargetnm should be :
tester_21062016_0908.txt
Thanks for any hints!