diff --git a/netxml2kml/Program.cs b/netxml2kml/Program.cs index b2c3801..af0d82d 100644 --- a/netxml2kml/Program.cs +++ b/netxml2kml/Program.cs @@ -80,8 +80,14 @@ class Program if (String.IsNullOrEmpty(opt) || opt.ToLower() == "no" || opt.ToLower() == "n") { - Console.Write("Enter a new name: "); + Console.Write("Enter a [.kml]: "); var name = Console.ReadLine(); + + if (String.IsNullOrEmpty(name)) + { + continue; + } + outFile = new FileInfo( Path.Join(outFile.DirectoryName, name)); continue;