mirror of
https://github.com/xiaoqidun/alive.git
synced 2025-12-25 23:28:35 +08:00
Compare commits
2 Commits
efe9e9bb50
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 82d2cc4e9c | |||
| 946cdc2837 |
1
alive.go
1
alive.go
@@ -35,6 +35,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
cmd := exec.Command("tscon", strconv.FormatUint(uint64(sid), 10), "/dest:console")
|
cmd := exec.Command("tscon", strconv.FormatUint(uint64(sid), 10), "/dest:console")
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
||||||
if cmd.Run() != nil {
|
if cmd.Run() != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user