-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:lindexi/lindexi_gd into dev
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
35
YayiwhelkaHellicallkaifea/YayiwhelkaHellicallkaifea/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
YayiwhelkaHellicallkaifea/YayiwhelkaHellicallkaifea/YayiwhelkaHellicallkaifea.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |