Skip to content

Commit 83d74cb

Browse files
committed
Adding initial versions of these hacky console apps
1 parent 0865dbc commit 83d74cb

File tree

21 files changed

+939
-0
lines changed

21 files changed

+939
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Express 2013 for Windows Desktop
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DuplicateOutputParser", "DuplicateOutputParser\DuplicateOutputParser.csproj", "{5E563690-C902-4F73-9BE3-96B6DFA0BB38}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{5E563690-C902-4F73-9BE3-96B6DFA0BB38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{5E563690-C902-4F73-9BE3-96B6DFA0BB38}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{5E563690-C902-4F73-9BE3-96B6DFA0BB38}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{5E563690-C902-4F73-9BE3-96B6DFA0BB38}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{5E563690-C902-4F73-9BE3-96B6DFA0BB38}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>DuplicateOutputParser</RootNamespace>
11+
<AssemblyName>DuplicateOutputParser</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="System" />
36+
<Reference Include="System.Core" />
37+
<Reference Include="System.Xml.Linq" />
38+
<Reference Include="System.Data.DataSetExtensions" />
39+
<Reference Include="Microsoft.CSharp" />
40+
<Reference Include="System.Data" />
41+
<Reference Include="System.Xml" />
42+
</ItemGroup>
43+
<ItemGroup>
44+
<Compile Include="Program.cs" />
45+
<Compile Include="Properties\AssemblyInfo.cs" />
46+
</ItemGroup>
47+
<ItemGroup>
48+
<None Include="App.config" />
49+
</ItemGroup>
50+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
51+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
52+
Other similar extension points exist, see Microsoft.Common.targets.
53+
<Target Name="BeforeBuild">
54+
</Target>
55+
<Target Name="AfterBuild">
56+
</Target>
57+
-->
58+
</Project>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.IO;
7+
using System.Text;
8+
9+
namespace DuplicateOutputParser
10+
{
11+
class Program
12+
{
13+
static void Main(string[] args)
14+
{
15+
List<string> listOfFilesToDelete = new List<string>();
16+
17+
using (TextReader reader = File.OpenText(@"=c:\output.csv"))
18+
{
19+
string line;
20+
while ((line = reader.ReadLine()) != null)
21+
{
22+
string[] splitLine = line.Split(',');
23+
DetermineDeletes(splitLine, listOfFilesToDelete);
24+
}
25+
}
26+
27+
foreach (string file in listOfFilesToDelete)
28+
{
29+
Console.WriteLine("del \"" + file + "\"");
30+
}
31+
}
32+
33+
static void DetermineDeletes(string[] files, List<string> listOfFilesToDelete)
34+
{
35+
foreach (string file in files)
36+
{
37+
listOfFilesToDelete.Add(file);
38+
}
39+
}
40+
}
41+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("DuplicateOutputParser")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("DuplicateOutputParser")]
13+
[assembly: AssemblyCopyright("Copyright © 2014")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("ff43635d-c352-4011-9c9d-1890f595da97")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Express 2013 for Windows Desktop
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "FindDuplicateFiles", "FindDuplicateFiles\FindDuplicateFiles.vbproj", "{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{25C3E9E4-F59B-49C0-B9D0-71CF12A6E607}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<StartupObject>FindDuplicateFiles.Module1</StartupObject>
10+
<RootNamespace>FindDuplicateFiles</RootNamespace>
11+
<AssemblyName>FindDuplicateFiles</AssemblyName>
12+
<FileAlignment>512</FileAlignment>
13+
<MyType>Console</MyType>
14+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<DefineDebug>true</DefineDebug>
21+
<DefineTrace>true</DefineTrace>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DocumentationFile>FindDuplicateFiles.xml</DocumentationFile>
24+
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<DefineDebug>false</DefineDebug>
30+
<DefineTrace>true</DefineTrace>
31+
<Optimize>true</Optimize>
32+
<OutputPath>bin\Release\</OutputPath>
33+
<DocumentationFile>FindDuplicateFiles.xml</DocumentationFile>
34+
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
35+
</PropertyGroup>
36+
<PropertyGroup>
37+
<OptionExplicit>On</OptionExplicit>
38+
</PropertyGroup>
39+
<PropertyGroup>
40+
<OptionCompare>Binary</OptionCompare>
41+
</PropertyGroup>
42+
<PropertyGroup>
43+
<OptionStrict>Off</OptionStrict>
44+
</PropertyGroup>
45+
<PropertyGroup>
46+
<OptionInfer>On</OptionInfer>
47+
</PropertyGroup>
48+
<ItemGroup>
49+
<Reference Include="System" />
50+
<Reference Include="System.Data" />
51+
<Reference Include="System.Deployment" />
52+
<Reference Include="System.Xml" />
53+
<Reference Include="System.Core" />
54+
<Reference Include="System.Xml.Linq" />
55+
<Reference Include="System.Data.DataSetExtensions" />
56+
</ItemGroup>
57+
<ItemGroup>
58+
<Import Include="Microsoft.VisualBasic" />
59+
<Import Include="System" />
60+
<Import Include="System.Collections" />
61+
<Import Include="System.Collections.Generic" />
62+
<Import Include="System.Data" />
63+
<Import Include="System.Diagnostics" />
64+
<Import Include="System.Linq" />
65+
<Import Include="System.Xml.Linq" />
66+
<Import Include="System.Threading.Tasks" />
67+
</ItemGroup>
68+
<ItemGroup>
69+
<Compile Include="Module1.vb" />
70+
<Compile Include="My Project\AssemblyInfo.vb" />
71+
<Compile Include="My Project\Application.Designer.vb">
72+
<AutoGen>True</AutoGen>
73+
<DependentUpon>Application.myapp</DependentUpon>
74+
</Compile>
75+
<Compile Include="My Project\Resources.Designer.vb">
76+
<AutoGen>True</AutoGen>
77+
<DesignTime>True</DesignTime>
78+
<DependentUpon>Resources.resx</DependentUpon>
79+
</Compile>
80+
<Compile Include="My Project\Settings.Designer.vb">
81+
<AutoGen>True</AutoGen>
82+
<DependentUpon>Settings.settings</DependentUpon>
83+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
84+
</Compile>
85+
</ItemGroup>
86+
<ItemGroup>
87+
<EmbeddedResource Include="My Project\Resources.resx">
88+
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
89+
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
90+
<CustomToolNamespace>My.Resources</CustomToolNamespace>
91+
<SubType>Designer</SubType>
92+
</EmbeddedResource>
93+
</ItemGroup>
94+
<ItemGroup>
95+
<None Include="My Project\Application.myapp">
96+
<Generator>MyApplicationCodeGenerator</Generator>
97+
<LastGenOutput>Application.Designer.vb</LastGenOutput>
98+
</None>
99+
<None Include="My Project\Settings.settings">
100+
<Generator>SettingsSingleFileGenerator</Generator>
101+
<CustomToolNamespace>My</CustomToolNamespace>
102+
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
103+
</None>
104+
<None Include="App.config" />
105+
</ItemGroup>
106+
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
107+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
108+
Other similar extension points exist, see Microsoft.Common.targets.
109+
<Target Name="BeforeBuild">
110+
</Target>
111+
<Target Name="AfterBuild">
112+
</Target>
113+
-->
114+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Module Module1
2+
3+
Sub Main()
4+
5+
End Sub
6+
7+
End Module

Console/FindDuplicateFiles/FindDuplicateFiles/My Project/Application.Designer.vb

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)