.ZIP ファイル文字列を出力するための文字列パスがありpath = @"C:\TEMP\test.zip";
、ファイル名と日付スタンプを探しています。例、test_TodayDate.ZIP。これを達成する方法はありますか?
ありがとう
できるよ:
string filePath = @"C:\TEMP\test.zip";
string finalPath = Path.Combine(Path.GetDirectoryName(filePath),
Path.GetFileNameWithoutExtension(filePath)
+ DateTime.Now.ToString("yyyyMMddHHmmss")
+ Path.GetExtension(filePath));