Open cmd in full screen

alexlxxl09 Posted messages 75 Status Membre -  
 James -

______________
cmd > 166x44
______________

4 réponses

yg_be Posted messages 23437 Registration date   Status Contributeur Last intervention   Ambassadeur 1 588
 
Hello,
I don't know of any method to perform an action from Notepad.
Do you use Windows?
0
alexlxxl09 Posted messages 75 Status Membre
 
Yes
0
[Dal] Posted messages 6205 Registration date   Status Contributeur Last intervention   1 108
 
Hello alexlxxl09,

As yg_be said, Windows Notepad does not allow actions to be executed, just text to be written.

Moreover, you are posting your question in the C++ category of the forum, and it’s not clear what the connection is.

Based on previous messages you posted talking about "notepad programming" (sic):

https://forums.commentcamarche.net/forum/affich-37123846-probleme-de-programmation-block-note

we can assume you might want to talk about a batch file (.bat). If that’s the case, your question has nothing to do with the C++ category where you posted and would belong in the "Autoit / batch" category of the forum.

In a batch file (.bat), you could then try this to maximize the cmd.exe window:
 START /MAX cmd.exe


and if you want to maximize the window and set the number of columns and rows, you could attempt this:

START /MAX cmd.exe /c "mode con cols=166 lines=44"


or this:

START /MAX cmd.exe /k "mode con cols=166 lines=44"


(not tested, I’m on Linux)

See:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/start
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mode

Dal
0
[Dal] Posted messages 6205 Registration date   Status Contributeur Last intervention   1 108
 
By the way, I'm moving the topic to the "Autoit / batch" category.

@alexlxxl09: if I did it wrong, let me know.
0
alexlxxl09 Posted messages 75 Status Membre > [Dal] Posted messages 6205 Registration date   Status Contributeur Last intervention  
 
Ok, thanks a lot.
0
alexlxxl09 Posted messages 75 Status Membre
 
It doesn't work for a certain time, I would like that if I do:
start dfxb.exe /max cmd.exe /c "mode con cols=166 lines=44"

it opens the cmd in full screen at the same time.
0
James
 
mode con cols=166 lines=44 it works
0
Bobby2Dallas Posted messages 163 Registration date   Status Membre Last intervention   2
 
In the search area, type "cmd"
Then right-click on cmd "open file location"
Create a shortcut on the desktop for the 'cmd' file
Right-click on the shortcut, then properties, and in the dropdown list 'Run', select "Maximized"

there you go!
0
brucine Posted messages 24414 Registration date   Status Membre Last intervention   4 105
 
Hello,

Yes, but that doesn't seem to answer the question which is not very clear; it would be about launching a program dfxb.exe in full screen from a batch file, which I am not familiar with.

If this program is intended to run in the console, it is not the program itself that should be launched but one of its commands (and assuming either that this program is in the PATH or that its path is qualified).

If it is a Windows program, what is the point of launching the console in full screen?

If it is the program itself that we want to start in full screen because clicking on it doesn't do so, we can simply write in a "normal" batch file the command start /max (path)dfxb.exe, but this may not work for all programs, as some might have their own switch for that purpose.
0
alexlxxl09 Posted messages 75 Status Membre > brucine Posted messages 24414 Registration date   Status Membre Last intervention  
 
Thank you very much, and you are the one who understood my question.
0
James
 
You can create a shortcut on Windows and right-click on the shortcut, then on "Properties" and you have cool settings

1. Font > The font style
2. Layout > Window size and more <<<<<< "You're looking for this"
3. Color > well, color :]

Goodbye!
0