diff options
author | sr55 <[email protected]> | 2012-06-14 22:03:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-14 22:03:04 +0000 |
commit | ace3c4767e52661299b84abbab05487e10d88b78 (patch) | |
tree | d751db6fca4e334f721cd1b1549ed04a24f04245 /win/CS/HandBrake.ApplicationServices/Services | |
parent | c3c5892ff08f931b0043d8c26e41b57f73f26205 (diff) |
WinGui: Fix another issue with Scanning sources at the drive letter level.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4736 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/ScanService.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs index 0d5118aee..fc8bb3f63 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs @@ -244,11 +244,9 @@ namespace HandBrake.ApplicationServices.Services extraArguments += " --scan ";
}
- // Quick fix for "F:\\" style paths. Just get rid of the \\ so the CLI doesn't fall over.
- // Sould probably clean up the escaping of the strings later.
- string source = sourcePath.ToString().EndsWith("\\")
- ? "\"" + sourcePath.ToString().TrimEnd('\\') + "\""
- : "\"" + sourcePath + "\"";
+ // Quick fix for "F:\\" style paths. We need \\\\ (Escaped \ twice)
+ string source = sourcePath.ToString().EndsWith("\\") ? string.Format("\"{0}\\\\\"", sourcePath.ToString().TrimEnd('\\'))
+ : "\"" + sourcePath + "\"";
string query = string.Format(@" -i {0} -t{1} {2} -v ", source, title, extraArguments);
this.hbProc = new Process
|