diff --git a/PdfScribe/App.config b/PdfScribe/App.config index cb395d0..c452d56 100644 --- a/PdfScribe/App.config +++ b/PdfScribe/App.config @@ -29,7 +29,7 @@ - + %Temp%\PDFSCRIBE.PDF diff --git a/PdfScribe/Program.cs b/PdfScribe/Program.cs index e3b648d..2cfdfe5 100644 --- a/PdfScribe/Program.cs +++ b/PdfScribe/Program.cs @@ -5,6 +5,7 @@ using System.Drawing; using System.IO; using System.Runtime.InteropServices; using System.Text; +using System.Text.RegularExpressions; using System.Windows.Forms; @@ -147,6 +148,23 @@ namespace PdfScribe static String GetOutputFilename() { + String outputFilename = Path.Combine(Path.GetTempPath(), defaultOutputFilename); + + if (!Properties.Settings.Default.AskUserForOutputFilename) + { + if (Directory.Exists(Path.GetFullPath(Properties.Settings.Default.OutputFile))) + { + if ( + } + + + + + } + else + { + + } return String.Empty; } /// diff --git a/PdfScribe/Properties/Settings.Designer.cs b/PdfScribe/Properties/Settings.Designer.cs index 3573032..02812b2 100644 --- a/PdfScribe/Properties/Settings.Designer.cs +++ b/PdfScribe/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18408 +// Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -26,9 +26,9 @@ namespace PdfScribe.Properties { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("%Temp%\\PDFSCRIBE.PDF")] - public string DefaultOutputFile { + public string OutputFile { get { - return ((string)(this["DefaultOutputFile"])); + return ((string)(this["OutputFile"])); } } diff --git a/PdfScribe/Properties/Settings.settings b/PdfScribe/Properties/Settings.settings index a4bb4e6..4d80443 100644 --- a/PdfScribe/Properties/Settings.settings +++ b/PdfScribe/Properties/Settings.settings @@ -2,7 +2,7 @@ - + %Temp%\PDFSCRIBE.PDF