From e40cdb2047c22a5cd7adbca16fa3c804d7b80509 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sun, 16 Feb 2014 21:53:07 +0000 Subject: Windows hack for proc_run() from Marshall --- boot.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 41282bb13..b875014bd 100755 --- a/boot.php +++ b/boot.php @@ -1574,8 +1574,13 @@ function proc_run($cmd){ $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - if(is_windows()) - proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo)); + + + if(is_windows()) { + $cwd = getcwd(); + $cmd = "cmd /c start \"title\" /D \"$cwd\" /b $cmdline"; + proc_close(proc_open($cmd, array(), $foo)); + } else proc_close(proc_open($cmdline." &",array(),$foo)); } -- cgit v1.2.3