Fixed a bug with the script name parsing for paths with spaces.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@1432 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
kenneth@hexad.dk
2012-08-17 17:25:55 +00:00
parent 0ff852867e
commit 7acbc99fe3
+1 -10
View File
@@ -171,16 +171,7 @@ namespace Duplicati.Library.Modules.Builtin
{
try
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
int space_ix = scriptpath.IndexOf(' ');
if (space_ix > 0)
{
psi.FileName = scriptpath.Substring(0, space_ix);
psi.Arguments = scriptpath.Substring(space_ix + 1);
}
else
psi.FileName = scriptpath;
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(scriptpath);
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
psi.CreateNoWindow = true;
psi.UseShellExecute = false;