From 459f0d0725f5e51ada042ffb5f65b5d760f0c7fd Mon Sep 17 00:00:00 2001 From: John Date: Mon, 11 Mar 2019 19:02:33 +0000 Subject: [PATCH] =?UTF-8?q?B2019-032=20=E2=80=93=20Clean=20up=20the=20Upda?= =?UTF-8?q?teROReport=20file=20name=20by=20replacing=20invalid=20file=20na?= =?UTF-8?q?me=20characters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs index bd79f877..22d31d67 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs @@ -302,7 +302,8 @@ namespace VEPROMS.CSLA.Library // returns the path and file name with Proc Set Name and the completed date/time (used for all update RO calls except for Amin Tool from the V button) public static string ROUpdateResultsPath (DocVersionInfo dvi) { - return Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\ROUpdateReport_" + dvi.MyFolder.Name.Replace(" ", "_") + "_" + DateTime.Now.ToString("MM-dd-yyyy_HH-mm-ss") +".txt"; + // B2019-032 - call ValidFileName.FixFileName() to clean up the file name. + return Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\ROUpdateReport_" + ValidFileName.FixFileName(dvi.MyFolder.Name.Replace(" ", "_") + "_" + DateTime.Now.ToString("MM-dd-yyyy_HH-mm-ss") + ".txt"); } public static ROFst RefreshROFst(RODbInfo rdi, DocVersionAssociation dva, DocVersion docver, ROFstInfo origROFst, ROFstInfoProgressBarRefresh myProgressBarRefresh, System.Windows.Forms.TextBox tbStatus) {