Can't launch Windows bat files

Hi community.

I’m currently using bat files to launch Maya and other applications on Windows, but creation flags at:

are preventing executables from being launched.

My temp solution is replacing those flags with ‘subprocess.CREATE_NEW_CONSOLE’.

I can only use a bat because it’s not just settings env vars,
but also copying some files from the network to local machines.

I’ve just seen that the terminal pre launch hook is doing the same:

so, are there any cases when current flags should be used instead of ‘subprocess.CREATE_NEW_CONSOLE’?

Thanks guys,
you rock.

1 Like