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?
I don't know of any method to perform an action from Notepad.
Do you use Windows?
alexlxxl09
Posted messages
75
Status
Membre
Yes
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:
and if you want to maximize the window and set the number of columns and rows, you could attempt this:
or this:
(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
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
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!
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!
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.
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.
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!
1. Font > The font style
2. Layout > Window size and more <<<<<< "You're looking for this"
3. Color > well, color :]
Goodbye!