visual studio - popup a dynamic name file using C# -



visual studio - popup a dynamic name file using C# -

i building c# programme store update in notepad (.txt files) , sorting using date used

string = string.format("updates-{0:dd-mm-yyyy}.txt", datetime.now);

and tring create display function popup file using

system.diagnostics.process.start("notepad.exe", "update.txt");

the problem every day update file renamed using new date question :- there function,code or allow me popup file name changing? , um doing using c# console application

i @hanks reply absolutely correct, may kind create more precise, or addupted answer, can seek this, "current" file name:

string filename = "updates-" + datetime.now.tostring("dd-mm-yyyy") + ".txt";

and after execute

system.diagnostics.process.start("notepad.exe", @"complete path text file");

hope helps.

c# visual-studio visual-studio-2008

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -