I run a batch command file which asks a few questions but I need a bigger font when it asks for input to be typed into the command window that popsCopilot gave this response:
up. How can a bigger font be called for within a batch command file whose questions are in that big font in the command window which comes up?
I run a batch command file which asks a few questions but I need a bigger font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose questions are in that big font in the command window which comes up?
I run a batch command file which asks a few questions but I need a bigger font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose questions are in that big font in the command window which comes up?
I run a batch command file which asks a few questions but I need a bigger font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose questions are in that big font in the command window which comes up?
Bill Powell <bill@anarchists.org> wrote:
I run a batch command file which asks a few questions but I need a bigger
font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose
questions are in that big font in the command window which comes up?
After the console window appears for the command shell (cmd.exe), use
the Control Menu (click the icon at left end of title bar), Properties,
Font tab. That changes the properties for how that shell got loaded.
When you use the same means of loading the shell, the font selections
get reused. Lots of settings under Properties.
On 11/30/2024 1:59 PM, Bill Powell wrote:
I run a batch command file which asks a few questions but I need a bigger
font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose
questions are in that big font in the command window which comes up?
https://stackoverflow.com/questions/42481782/how-to-make-the-console-font-bigger-when-running-a-batch
Have the batch open a new window with larger fonts to ask/answer the question.
You may need to something to move the cursor into the new window to type
in it. See free NirSoft at https://nircmd.nirsoft.net/movecursor.html
On 30.11.2024 19:59, Bill Powell wrote:
I run a batch command file which asks a few questions but I need a bigger
font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose
questions are in that big font in the command window which comes up?
https://www.tenforums.com/tutorials/179097-how-change-font-size-windows-terminal-profile-windows-10-a.html
add-appxpackage -path .\Microsoft.WindowsTerminal_1.21.3231.0_8wekyb3d8bbwe.msixbundle"Mode LastWriteTime Length Name
Get-AppxPackage *WindowsTerminal* -AllUsersName : Microsoft.WindowsTerminal
But the problem is that the font is changed and you have to restart cmd.exe. (last line).
So you have to start a new batch file basically. Not really user friendly.
On Sat, 30 Nov 2024 20:37:26 +0100, Herbert Kleebauer wrote:
On 30.11.2024 19:59, Bill Powell wrote:
I run a batch command file which asks a few questions but I need a bigger >>> font when it asks for input to be typed into the command window that pops >>> up. How can a bigger font be called for within a batch command file whose >>> questions are in that big font in the command window which comes up?
https://www.tenforums.com/tutorials/179097-how-change-font-size-windows-terminal-profile-windows-10-a.html
The first step is "open the Windows terminal app".
I didn't even know there was such a thing as the Windows terminal app!
On Sat, 30 Nov 2024 14:54:24 -0600, VanguardLH wrote:
Bill Powell <bill@anarchists.org> wrote:
I run a batch command file which asks a few questions but I need a bigger >>> font when it asks for input to be typed into the command window that pops >>> up. How can a bigger font be called for within a batch command file whose >>> questions are in that big font in the command window which comes up?
After the console window appears for the command shell (cmd.exe), use
the Control Menu (click the icon at left end of title bar), Properties,
Font tab. That changes the properties for how that shell got loaded.
When you use the same means of loading the shell, the font selections
get reused. Lots of settings under Properties.
You have to try it before you say that because I tried everything already. The font selections do NOT get used. At least not in my experience.
So you have to do it every time - which is the main reason I'm asking. Nothing sticks. Yet.
You have to try it to understand the problem.
The first step is "open the Windows terminal app".
I didn't even know there was such a thing as the Windows terminal app!
Microsoft has replaced conhost by terminal as default window for CMD/Powershell (at least in Win11, don't know about Win10). If you
open a CMD window and can open more tabs then terminal instead of
conhost is used. I think with terminal the font size specified in a
link to batch isn't used anymore, you have to change the font size
direct in terminal. Also you can't change the window size by a
"mode con" anymore (because all tabs share the same window).
I have a shortcut to run cmd.exe. I use it to load a shell. Whatever I previously selected for font size gets reused. If I open the shell a different way, those font settings don't apply. Whatever I used for the other shortcut gets remembered.
I create a test.bat file on the Windows desktop containing:
echo This is a test batch script.
set b=hello today
echo b var is %b%
pause
I double-click the .bat file, and a shell opens with the typical font
size. Before htting a hit for the 'pause' command, I change the font to something huge. I hit a key and the shell window closes. I
double-click again on the test.bat file. The huge font is used.
Works for me. However, you never mentioned how *you* run the batch
file. The method I mentioned of change font size in properties works,
so my suggestion was a solution, but not apparently for however you call
the .bat file.
You have to try to better to describe the problem.
But now I can *only* open up a Windows Terminal (wt.exe) when I run any
batch file. That means, I can't get to a "normal" command window anymore.
Of course, that doesn't work for all batch files though, where my batch
file is (simplified) shown below which simply asks for input from a user.
@echo off
:START
set /p dirname="DIR NAME? "
if not exist "%dirname%" mkdir "%dirname%"
set /p repeat=Repeat? [y/n]:
if %repeat%== y goto START else goto FINISH
:FINISH
exit /B 0
Bill Powell <bill@anarchists.org> wrote:not sure about this but would changing to a different desktop before
I run a batch command file which asks a few questions but I need a bigger
font when it asks for input to be typed into the command window that pops
up. How can a bigger font be called for within a batch command file whose
questions are in that big font in the command window which comes up?
After the console window appears for the command shell (cmd.exe), use
the Control Menu (click the icon at left end of title bar), Properties,
Font tab. That changes the properties for how that shell got loaded.
When you use the same means of loading the shell, the font selections
get reused. Lots of settings under Properties.
Copilot gave this response:
@echo off
reg add "HKCU\Console" /v FontFace /t REG_SZ /d "Lucida Console" /f
reg add "HKCU\Console" /v FontSize /t REG_DWORD /d 0x02000000 /f
start cmd.exe
But the problem is that the font is changed and you have to restart cmd.exe. (last line).
So you have to start a new batch file basically. Not really user friendly.
Why don't you just adjust the window for larger fonts? Permanently? Then batch files would all be
larger.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 507 |
Nodes: | 16 (2 / 14) |
Uptime: | 211:31:09 |
Calls: | 9,970 |
Calls today: | 1 |
Files: | 13,828 |
Messages: | 6,358,090 |