github.com/gogf/gf/v2@v2.7.4/os/gproc/gproc_process_newprocess_windows.go (about) 1 // Copyright GoFrame Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/gogf/gf. 6 7 //go:build windows 8 9 package gproc 10 11 import ( 12 "syscall" 13 14 "github.com/gogf/gf/v2/text/gstr" 15 ) 16 17 // Set the underlying parameters directly on the Windows platform 18 func joinProcessArgs(p *Process) { 19 p.SysProcAttr = &syscall.SysProcAttr{} 20 p.SysProcAttr.CmdLine = gstr.Join(p.Args, " ") 21 }