diff options
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -279,6 +279,7 @@ define ( 'PERMS_NETWORK' , 0x0002 ); define ( 'PERMS_SITE' , 0x0004 ); define ( 'PERMS_CONTACTS' , 0x0008 ); define ( 'PERMS_SPECIFIC' , 0x0080 ); +define ( 'PERMS_AUTHED' , 0x0100 ); // Address book flags @@ -1574,8 +1575,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)); } |