4coder » Forums » Starting 4coder from cmd
clankill3r
Doeke
24 posts

None

#10642 Starting 4coder from cmd
4 months, 3 weeks ago

For handmade hero I use casey's way of setting things up.
So I start with my cmd shortcut.

From there I can type emacs for example or devenv.

I made a batch file now misc/4coder.bat so I can start 4coder from cmd.
However, if I type emacs or devenv, then I can keep using the commandline. But if I type 4coder, then I can't use the commandline anymore untill I close 4coder.

Is there a way to fix this on my end? Or is this up to Allen to fix?

None
mmozeiko
Mārtiņš Možeiko
1350 posts
1 project
#10645 Starting 4coder from cmd
4 months, 3 weeks ago

You could do "start 4coder".
clankill3r
Doeke
24 posts

None

#10672 Starting 4coder from cmd
4 months, 3 weeks ago

Thanks, that will do for now.

@Allen, it would still be nice to be fixed. Cause the 'start 4coder' solution opens another cmd window, and I prefer to keep my windows to a minimal.

None
ratchetfreak
267 posts
#10686 Starting 4coder from cmd
4 months, 3 weeks ago

clankill3r:
Thanks, that will do for now.

@Allen, it would still be nice to be fixed. Cause the 'start 4coder' solution opens another cmd window, and I prefer to keep my windows to a minimal.


You can add the /B switch to suppress creation of the extra command window: 'start /B 4coder'. However it will still pipe the stdout and stderr from 4coder to the current console
Mr4thDimention
Allen Webster
241 posts
2 projects

Heyo

#10694 Starting 4coder from cmd
4 months, 3 weeks ago

Hmmmmm... I'm not even sure why that is happening. I can launch 4coder with or without start and not have these issues. What version of Windows are you on?
mmozeiko
Mārtiņš Možeiko
1350 posts
1 project
#10699 Starting 4coder from cmd
4 months, 3 weeks ago

You can also use editbin.exe (from vsvarsall.bat commandline) that can switch between application running as console or gui one:
1
2
editbin.exe /subsystem:console my.exe // this will make my.exe to use console and stdin/stdout
editbin.exe /subsystem:windows my.exe // this will make my.exe to not use console at all
erpeo93
leonardo lucania
30 posts

None

#10734 Starting 4coder from cmd
4 months, 3 weeks ago Edited by leonardo lucania on Feb. 4, 2017, 6:23 p.m.

Arrived here for the same reason of the OP.
Finally resolved using the start in combination with the \B param, thank you guys.


Here is my 4.bat file, maybe I can avoid someone the google search on how to use start in .bat files.

@echo off
start "dummytitle" "W:\4coder\4ed.exe" -F \B
(the -F is for the fullscreen).


Leonardo



None