- 1 year ago
setsid equivalent in Windows?
Comment
1 / 1
In Windows, the setsid
command from Unix-like systems does not have an exact equivalent. The setsid
command is used to run a program in a new session and detach it from the current terminal.
However, in Windows, you can achieve a similar effect by using the start
command with the /b
option, which starts a command without opening a new window. Here's an example:
bashstart /b your_command
This will run your_command
in the background without opening a new window. However, note that this is not exactly equivalent to setsid
as it doesn't create a new session.
If you need more advanced functionality similar to setsid
in Windows, you may need to use a third-party tool or explore other options depending on your specific use case.