Skip to content

Commit 9039787

Browse files
committed
Version and description
1 parent e79e967 commit 9039787

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

ETLReports/ETLReports.vbproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<OutputType>Exe</OutputType>
55
<RootNamespace>ETLReports</RootNamespace>
66
<TargetFramework>netcoreapp3.1</TargetFramework>
7+
<Authors>Chad Schultz</Authors>
8+
<Description>Produces .csv files from .etl files based on processor selected.</Description>
9+
<Version>0.0.1</Version>
710
</PropertyGroup>
811

912
<ItemGroup>

ETLReports/Program.vb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,17 @@ Module Program
105105
ShowHelp()
106106
End If
107107

108-
If (Path.GetDirectoryName(outputfolder).Intersect(Path.GetInvalidPathChars()).Any() Or Not Directory.Exists(outputfolder)) Then
109-
Console.WriteLine("Output folder not valid. " + outputfolder)
108+
Try
109+
If (Path.GetDirectoryName(outputfolder).Intersect(Path.GetInvalidPathChars()).Any() Or Not Directory.Exists(outputfolder)) Then
110+
Console.WriteLine("Output folder not valid. " + outputfolder)
111+
ShowHelp()
112+
Else
113+
File.Delete(outputfolder + Path.GetFileNameWithoutExtension(filename) + "_" + processor + ".csv")
114+
End If
115+
Catch ex As Exception
116+
Console.WriteLine("Folder not found. " + filename)
110117
ShowHelp()
111-
Else
112-
File.Delete(outputfolder + Path.GetFileNameWithoutExtension(filename) + "_" + processor + ".csv")
113-
End If
118+
End Try
114119

115120
If Nothing = filename Then
116121
Console.WriteLine("No filename specified.")
@@ -149,7 +154,7 @@ Module Program
149154

150155
outputfile = (outputfolder + Path.GetFileNameWithoutExtension(filename) + "_" + processor + ".csv")
151156

152-
Select Case processor
157+
Select Case processor.ToLower
153158
Case "processes"
154159
Processes()
155160
Case "tasks"

0 commit comments

Comments
 (0)