using System.IO;\r
using System.Security.Cryptography;\r
using System.Text.RegularExpressions;\r
+ using System.Windows.Forms;\r
\r
using Caliburn.Micro;\r
\r
\r
// Get the SHA1 Hash of HandBrakeCLI\r
byte[] hash;\r
- using (Stream stream = File.OpenRead("HandBrakeCLI.exe"))\r
+ using (Stream stream = File.OpenRead(Path.Combine(Application.StartupPath, "HandBrakeCLI.exe")))\r
{\r
hash = SHA1.Create().ComputeHash(stream);\r
}\r
\r
// It's not the same, so start the CLI to get it's version data.\r
Process cliProcess = new Process();\r
- ProcessStartInfo handBrakeCli = new ProcessStartInfo("HandBrakeCLI.exe", " -u -v0")\r
+ ProcessStartInfo handBrakeCli = new ProcessStartInfo(Path.Combine(Application.StartupPath, "HandBrakeCLI.exe"), " -u -v0")\r
{\r
UseShellExecute = false,\r
RedirectStandardError = true,\r