Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:lindexi/lindexi_gd into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 25, 2023
2 parents 6fb4d7a + 1ce6c8d commit 64440c6
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
25 changes: 25 additions & 0 deletions YayiwhelkaHellicallkaifea/YayiwhelkaHellicallkaifea.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YayiwhelkaHellicallkaifea", "YayiwhelkaHellicallkaifea\YayiwhelkaHellicallkaifea.csproj", "{843DB671-7B25-4558-B17F-01F160266735}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{843DB671-7B25-4558-B17F-01F160266735}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{843DB671-7B25-4558-B17F-01F160266735}.Debug|Any CPU.Build.0 = Debug|Any CPU
{843DB671-7B25-4558-B17F-01F160266735}.Release|Any CPU.ActiveCfg = Release|Any CPU
{843DB671-7B25-4558-B17F-01F160266735}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {99C68877-9C8B-4A40-AD7A-7249F2D0AC17}
EndGlobalSection
EndGlobal
35 changes: 35 additions & 0 deletions YayiwhelkaHellicallkaifea/YayiwhelkaHellicallkaifea/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// See https://aka.ms/new-console-template for more information

using System.Diagnostics;

var t = @"g:\Share\v\";
var s = args[0];

foreach (var directory in Directory.GetDirectories(s))
{
var directoryInfo = new DirectoryInfo(directory);
if (directoryInfo.CreationTime > DateTime.Now.AddDays(-2))
{
var folder = new DirectoryInfo(Path.Join(t, directoryInfo.Name));

try
{
folder.CreateAsSymbolicLink(directoryInfo.FullName);
}
catch (System.IO.IOException e)
{
Console.WriteLine(e);
}

//var processStartInfo = new ProcessStartInfo("mklink")
//{
// ArgumentList =
// {
// "/d",
// folder,
// directoryInfo.FullName
// }
//};
//Process.Start(processStartInfo);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>

0 comments on commit 64440c6

Please sign in to comment.