I want to add “CH” and date while keeping the existing filename. but it keeps giving errors. can you help?
Thank you for your support and cooperation.
I want to add “CH” and date while keeping the existing filename. but it keeps giving errors. can you help?
Thank you for your support and cooperation.
Thansk Anil_G.
The file name that I want is currentfile.Name_CH_dd.MM.yyyy
its not good to use dot in filename…so please try below
currentfile.Name.Split("."c)(0) + "_CH_" + Now.ToString("dd_MM_yyyy") + currentfile.Extension
cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.