Sublime Forum

New window as new process

#1

Is it possible to start multiple windows as multiple processes?

If I start ‘sublime_text -n’ a couple of times, I get multiple windows, but they all share the same process.

I’m starting sublime_text from an ERP system and this system will save changes when the process is closed.
This is not a problem for one window, but it is for multiple windows at the same time.

0 Likes

#2

For now I have an uggly but working solution with a batch file:

@echo off

rem generate something random
for /f "delims=/ tokens=1-3" %%a in ("%DATE:~4%") do (
    for /f "delims=:. tokens=1-4" %%m in ("%TIME: =0%") do (
        set FILENAME=subl-%%c-%%b-%%a-%%m%%n%%o%%p.exe
    )
)

cd path_to_sublime_text
rem hidecon is a tool to hide the console: http://code.kliu.org/misc/hidecon/
hidecon
copy sublime_text.exe "%FILENAME%"
"%FILENAME%" -n %1
del "%FILENAME%"
0 Likes