I use C++ Windows Form application in Visual Studio 2013 for one project. I wonder how to create a folder that contains the current date and time instead of name? It is possible to make such folder??
DirectoryInfo^ directory = Directory::CreateDirectory("C:\Users\Desktop\" + ??);
Best How To :
Don't hard-code the desktop directory name, it is not c:\users\desktop. .NET makes it easy:
String^ path = System::IO::Path::Combine(
// Write file(s) to <path>
It is up to you to decide how fine-grained to make the directory name, if you do this at a very high rate then you must append "fff" to reduce the risk for name collisions. If it is a once-a-week task then just the date part is enough.