namespace NewDateFloder
{
class Program
{
static void Main(string[] args)
{
string FloderPath = @"F:";
string Date = DateTime.Now.ToString("yyyyMMddHHmmss").Substring(0, 8);
if (!Directory.Exists(FloderPath + "\" + Date))//能否存在
{
Directory.CreateDirectory(FloderPath + "\" + Date);
System.Diagnostics.Process.Start(FloderPath);
System.Diagnostics.Process.Start("Explorer.exe",FloderPath);
}
}
}
}
解决方案
5
System.Diagnostics.Process.Start(FloderPath);
System.Diagnostics.Process.Start(“Explorer.exe”,FloderPath);
这两句,有其中一句就可以了
System.Diagnostics.Process.Start(“Explorer.exe”,FloderPath);
这两句,有其中一句就可以了
15