Skip to content

Commit

Permalink
Version and description
Browse files Browse the repository at this point in the history
  • Loading branch information
itoleck committed Jul 22, 2022
1 parent e79e967 commit 9039787
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ETLReports/ETLReports.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<OutputType>Exe</OutputType>
<RootNamespace>ETLReports</RootNamespace>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Authors>Chad Schultz</Authors>
<Description>Produces .csv files from .etl files based on processor selected.</Description>
<Version>0.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
17 changes: 11 additions & 6 deletions ETLReports/Program.vb
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,17 @@ Module Program
ShowHelp()
End If

If (Path.GetDirectoryName(outputfolder).Intersect(Path.GetInvalidPathChars()).Any() Or Not Directory.Exists(outputfolder)) Then
Console.WriteLine("Output folder not valid. " + outputfolder)
Try
If (Path.GetDirectoryName(outputfolder).Intersect(Path.GetInvalidPathChars()).Any() Or Not Directory.Exists(outputfolder)) Then
Console.WriteLine("Output folder not valid. " + outputfolder)
ShowHelp()
Else
File.Delete(outputfolder + Path.GetFileNameWithoutExtension(filename) + "_" + processor + ".csv")
End If
Catch ex As Exception
Console.WriteLine("Folder not found. " + filename)
ShowHelp()
Else
File.Delete(outputfolder + Path.GetFileNameWithoutExtension(filename) + "_" + processor + ".csv")
End If
End Try

If Nothing = filename Then
Console.WriteLine("No filename specified.")
Expand Down Expand Up @@ -149,7 +154,7 @@ Module Program

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

Select Case processor
Select Case processor.ToLower
Case "processes"
Processes()
Case "tasks"
Expand Down

0 comments on commit 9039787

Please sign in to comment.