conemu - custom console panels layout - conemu

I'm trying to arrange my conemu panels in a specific way. I only managed to get 2/3 of the panels to be arranged as i'd like, but i can't figure out how to do the last part.
The layout i'm after is something like this:
but i only managed to get two panels split horizontally and the third one opens on a new (fullscreen) panel in a different tab.
How can i achive this?
The task parameters i'm using are the following:
title GIT -new_console:12T50H:P:"Dracula" & cmd /k "%ConEmuDir%\..\init.bat" && cd c:\src\www
title Website -new_console:12T50V:P:"Dracula" & cmd /k "%ConEmuDir%\..\init.bat" && cd c:\src\www
title DYS -new_console:s2T50V:P:"Monokai - Custom" & cmd /k "%ConEmuDir%\..\init.bat" && cd c:\src\dys
Thanks for any suggestion

There is no magic. Only one simple rule: each "split" divides the pane in two.
You made two mistakes. First pane can't be a split - it's completely new console covering 100% of surface. In the second split you missed s modifer.
-new_console:t:"GIT":P:"Dracula":d:"c:\src\www" & cmd /k "%ConEmuDir%\..\init.bat"
-new_console:t:"Website":s1T50H:P:"Dracula":d:"c:\src\www" & cmd /k "%ConEmuDir%\..\init.bat"
-new_console:t:"DYS":s1T50V:P:"Monokai - Custom":d:"c:\src\dys" & cmd /k "%ConEmuDir%\..\init.bat"

Related

Trying to open a new cmd window then run multiple commands in it

I am facing a rather annoying issue when trying to write a batchscript file for my assignment, the assignment asks me to open a new command prompt window, change its color and make it print the current windows version. I can make it open the new window and change the color but no matter what I do it will always execute any new commands including the ver command on the old command prompt window, I have tried using & to run multiple commands but it just does nothing.
start cmd /k color F1 & ver
pause
This is the code I have now, any help would be appreciated
To undertake the task you've specifically shown us, there is no need whatsoever to use the color command, and as a result, include an ampersand to join two commands.
If you open a Command Prompt window, type cmd.exe /? and press the ENTER key, you should see that there is a /T option you can use.
Start %SystemRoot%\System32\cmd.exe /T:F1 /D /K Ver
Have you tried
start "My assignment" cmd /k "color F1 & ver"
Note that the window title is the first quoted string in the start command.
Without double quotes only the "color f1" command is being passed to your new cmd window.
start cmd /k "color F1 & ver"
pause
I think will give you the results you want.

How can I open more than one cmd frames at the saame time and use different codes in them

I am basically hosting 4 node.js projects at the same time and want a batch file to run them all using cmd but I cant open more than one cmd using only one bat file or cant open them all using another bat file so I have to manually make new bat files and edit them everytime I make a new project
cmd.exe
cmd.exe
cmd /k "title hello & color E0"
cmd /k "title hi & color E7"
this is one of my desperete tries, ıt only performs firt line, then the second when I write exit, third line after the next exit and so on. Can u pls help me
To give you a better representation of using start in my comment, here is an example:
title This is the original prompt & color A7
start cmd /k "title prompt 1 & color B7"
start cmd /k "title prompt 2 & color C7"
start cmd /k "title prompt 3 & color D7"
start cmd /k "title prompt 4 & color E7"

How to open a exe in a new window w/ multiple command lines?

I want to run a file, where it automaticly enters multiple commands in that new window.
I have already tried "&" "&&" "|" and "||"
cmd /k "diskpart.exe & select disk 0 && echo Disk 0 has been selected."
Thanks Compo!
It is exactly the thing for what I am looking for!
Great Job!
DiskPart /S "yourfile.txt"

Open CMD with specific color and title

I recently started learning batch and wanted to write a script that opens CMD with a specific color and title. This code opens my CMD and another plain one! How can i get rid of the plain cmd?
Start CMD
title Hacker's CMD
color 04
start cmd /k title Hacker's CMD^&color 04
The /k parameter executes the commands and leaves the cmd window open. To pass several commands use an escaped command separator ^& so that the separation occurs in the launched cmd, not in the original batch file.

How to change color of new cmd window (together with a custom prompt) created via running a batch script

I already know how to create a new cmd window from a batch script with custom color, and a new cmd window with a custom prompt. However am wanting to find a way of combining the two together...
Here is what I have in my batch file to create a new cmd window with customised prompt (in this case, the customised prompt is the windows version details):
start cmd /k "prompt $v"
... And this is what I'm doing to create a new cmd window with customised color:
start cmd /k "color 42"
I've tried the following to combine the two, but none of them work:
start cmd /k "color 42" /k "prompt $v"
start cmd /k"color 42" "prompt $v"
If anyone can help point me in the right direction that would be awesome. Been searching via Google and other forums but after spending over an hour on a fruitless search I thought I'd ask a question here...
The only thing you are missing is the operator that will concatenate multiple commands on one line: &.
start cmd /k "color 42&prompt $v"
This operator works in all situations, not just within the command string for the CMD command. There are a few concatenation operators with different behavior:
& - Always executes the next command
&& - Only executes the next command if the prior command was successful (ERRORLEVEL=0)
|| - Only executes the next command if the prior command failed (ERRORLEVEL<>0)
try:
start cmd /k"color 42; prompt $v"
I'm late to the party here, but note that cmd /t:fg will set the colors just like the color command, so you could also run
start cmd /t:42 /k "prompt $v"

Resources