File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments