From db4a785558df48c4f69963aecd9e495addfaa0e1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 11 Jun 2018 20:40:20 -0700 Subject: [PATCH] Use path combination --- MainWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 295b169b..6e868f86 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -205,9 +205,9 @@ namespace DICUI string batchname = "PSX" + Guid.NewGuid() + ".bat"; using (StreamWriter writetext = new StreamWriter(batchname)) { - writetext.WriteLine(psxtPath + " " + "\"" + Utilities.GetFirstTrack(outputDirectory, outputFileName) + "\" > " + "\"" + outputDirectory + "\\" + "psxt001z1.txt"); - writetext.WriteLine(psxtPath + " " + "--libcrypt " + "\"" + outputDirectory + "\\" + outputFileName + ".sub\" > " + "\"" + outputDirectory + "\\" + "libcrypt.txt"); - writetext.WriteLine(psxtPath + " " + "--libcryptdrvfast " + driveLetter + " > " + "\"" + outputDirectory + "\\" + "libcryptdrv.log"); + writetext.WriteLine(psxtPath + " " + "\"" + Utilities.GetFirstTrack(outputDirectory, outputFileName) + "\" > " + "\"" + Path.Combine(outputDirectory, "psxt001z.txt")); + writetext.WriteLine(psxtPath + " " + "--libcrypt " + "\"" + Path.Combine(outputDirectory, outputFileName + ".sub") + "\" > " + "\"" + Path.Combine(outputDirectory, "libcrypt.txt")); + writetext.WriteLine(psxtPath + " " + "--libcryptdrvfast " + driveLetter + " > " + "\"" + Path.Combine(outputDirectory, "libcryptdrv.log")); } Process psxt = new Process();