LoginSignup
0
1

More than 3 years have passed since last update.

単純にフォルダ開く

Last updated at Posted at 2020-05-24

単純にフォルダを開く

using System;

namespace m2alpha_XXX
{
    public class OpenFolder
    {
        static void Main(string[] args)
        {
            System.Diagnostics.Process.Start(@"C:test");
        }
    }
}

日付の組み合わせてフォルダを開く

using System;

namespace m2alpha_xxx
{
    public class TEST
    {
        static void Main(string[] args)
        {

            string OpenPath = System.IO.Path.Combine (@"C:\test",DateTime.Now.ToString("yyyy"),DateTime.Now.ToString("MM"),DateTime.Now.ToString("dd"));

            System.Diagnostics.Process.Start(OpenPath);

        }
    }
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1