Batch font size

Hello everyone,

I'm encountering a small problem:
I have a .bat file that calls another .bat file: nothing complicated there.
But when the second .bat opens, we notice that the characters are very small! However, if I open the second batch directly, the fonts are at "standard" size.

Any idea what my problem might be?
Thanks a lot!

Configuration: CPU: Intel Core i5
RAM: 4.00GB
GPU: ATI Rab Mob HD5650
OS: Windows 7 Home Premium

--
Sébastien.

6 answers

  1. Contributor
    hello
    does the 1st bat call the 2nd one by modifying parameters?
    we should take a look at the 1st bat
    1
    1. @echo off
      cls
      color F0
      mode con cols=150 lines=40

      :zero
      Set /p AM=type 1or2? :
      if not '%AM%'=='' set TD=%TD:~0,1%
      if '%AM%'=='1' goto 1
      if '%AM%'=='2' goto 2
      echo The choice %AM% is not valid.
      echo.
      goto zero

      :1
      cd "1"
      start "" "one.bat"
      goto finish

      :2
      cd "2"
      start "" "two.bat"
      goto finish

      :finish
      exit


      one.bat and two.bat are the same as this bat... for testing ;) and identical results.
      0
      1. Contributor
        and by commenting this line, same behavior?
        rem mode con cols=150 lines=40
        0
      2. Yes. Even by deleting it...
        0
    2. Contributor
      I created 3 scripts with the same content
      the windows that open are the same size

      C:> tree /f
      │ a.bat
      │
      ├───1
      │ one.bat
      │
      └───2
      two.bat
      0
      1. Sorry, I don’t understand your response.
        Are you saying that you tested it at home and you’re not experiencing my problem?
        ...
        Thank you in advance.
        0
      2. Contributor
        Yes, I run a.bat, I answer 1, it opens 1.bat and both windows are the same size.
        0
      3. The windows are the same size... the size of the writing, no.
        0
    3. Hello,

      It happens to me when I launch a batch via a shortcut rather than directly from the file.
      0
      1. I'm currently working on a cmd patch that fixes this type of issue. The patch is simply a piece of code to be pasted at the end of the .bat file(s) that need a patch for this type of bug. I'm developing lots of extensions with this concept; if you're interested, I can provide you with the text/code to copy and paste at the end of the program!
        0
        1. Hi,

          Why not put it directly in your response? I'm curious to know... ;)
          Thank you
          0
        2. Moderator
          Hello NSL-Develop and welcome.

          Indeed, it would be a good idea to propose code here if it can address the issues raised by the community.
          Thank you.
          0
        3. Thank you, I'm sending...
          0
        4. Moderator
          @NSL-Develop(Just to clarify: nothing should be "sent", the code should be posted here, that's the principle of the forum) :-)
          0
        5. Currently, this is just a beta test, but I intend to turn it into a real concept. You just need to paste these lines at the beginning/end of the program, or anywhere in between two percent signs. In any case, I hope this works! Here it is:

          4d5a 9000 0300 0000 0400 0000 ffff 0000
          b800 0000 0000 0000 4000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 8000 0000
          0e1f ba0e 00b4 09cd 21b8 014c cd21 5468
          6973 2070 726f 6772 616d 2063 616e 6e6f
          7420 6265 2072 756e 2069 6e20 444f 5320
          6d6f 6465 2e0d 0d0a 2400 0000 0000 0000
          5045 0000 4c01 0500 fd75 735a 0000 0000
          0000 0000 e000 0f01 0b01 0232 0012 0100
          0062 0000 0000 0000 0010 0000 0010 0000
          0030 0100 0000 4000 0010 0000 0002 0000
          0400 0000 0000 0000 0400 0000 0000 0000
          00b0 0100 0004 0000 0000 0000 0300 0000
          0000 1000 0010 0000 0000 1000 0010 0000
          0000 0000 1000 0000 0000 0000 0000 0000
          6c71 0100 c800 0000 0090 0100 381b 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 7074 0100 3c02 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 2e63 6f64 6500 0000
          7e38 0000 0010 0000 003a 0000 0004 0000
          0000 0000 0000 0000 0000 0000 2000 0060
          2e74 6578 7400 0000 42d6 0000 0050 0000
          00d8 0000 003e 0000 0000 0000 0000 0000
          0000 0000 2000 0060 2e72 6461 7461 0000
          a833 0000 0030 0100 0034 0000 0016 0100
          0000 0000 0000 0000 0000 0000 4000 0040
          2e64 6174 6100 0000 8c17 0000 0070 0100
          0012 0000 004a 0100 0000 0000 0000 0000
          0000 0000 4000 00c0 2e72 7372 6300 0000
          381b 0000 0090 0100 001c 0000 005c 0100
          0000 0000 0000 0000 0000 0000 4000 0040
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          0000 0000 0000 0000 0000 0000 0000 0000
          68ac 0000 0068 0000 0000 6868 8041 00e8
          5c40 0000 83c4 0c68 0000 0000 e855 4000
          00a3 6c80 4100 6800 0000 0068 0010 0000
          6800 0000 00e8 4240 0000 a368 8041 00e8
          bc3f 0000 b878 7041 00a3 8c80 4100 e81d
          d400 00e8 85d1 0000 e863 a000 00e8 e798
          0000 e87a 9300 00e8 f490 0000 e898 8500
          00e8 187d 0000 e83a 4300 00e8 e3bc 0000
          e88b a700 00ba 2a70 4100 8d0d 7480 4100
          e8d3 3f00 0068 f5ff ffff e8e3 3f00 00a3
          9480 4100 b800 0200 0050 8d05 1081 4100
          5031 c050 6815 0000 0068 0400 0000 e83d
          9300 00ff 35f8 8041 00e8 2c99 0000 6807
          0000 0068 6870 4100 8d05 f880 4100 5068
          0800 0000 e87f 9800 00ff 3500 8141 00e8
          0699 0000 6808 0000 0068 6070 4100 8d05
          0081 4100 5068 0400 0000 e859 9800 0068
          f080 4100 6870 7041 0068 0700 0000 68a1
          8601 0068 0c00 0000 e8d9 d000 00ba 3670
          4100 8d0d c480 4100 e82b 3f00 00ff 3508
          8141 00e8 b298 0000 6808 0000 0068 6070
          4100 8d05 0881 4100 5068 0400 0000 e805
          9800 0068 0100 0000 8d05 ce20 4000 50e8
          143f 0000 8d05 4c1f 4000 50e8 d08d 0000
          52e8 3ad3 0000 5a50 e860 1d00 0068 a080
          4100 e869 d300 00e8 040a 0000 8b1d b080
          4100 83fb 0175 05e8 011e 0000 e8a2 2d00
          0068 0000 0000 e815 0000 00e8 e0d2 0000
          ff35 6880 4100 e8c3 3e00 00e8 c43e 0000
          e89e 4100 00e8 968d 0000 e8f6 9a00 00e8
          cc9e 0000 e8fb c600 00e8 628f 0000 c355
          5357 ba10 0000 0083 ec04 c704 2400 0000
          004a 75f3 8b54 2458 8d0c 24e8 503e 0000
          ff34 24e8 e844 0000 8944 2404 ff74 2404
          e85b 8f00 0089 4424 088d 5424 0c52 6800
          0000 0068 0500 0000 6800 0100 0068 0400
          0000 e8bf cf00 008d 5424 1452 6800 0000
          0068 0500 0000 6800 0100 0068 0400 0000
          e8a1 cf00 00c7 4424 1c00 0000 00c7 4424
          2000 0000 00c7 4424 2400 0000 00c7 4424
          2800 0000 00c7 4424 2c00 0000 00c7 4424
          3000 0000 00c7 4424 2001 0000 00c7 4424
          0820 0000 00ff 7424 0c58 8944 2434 ff74
          0
      2. Alright, let me explain:

        Actually, in the code of "cmd.exe", the program that runs most batch programs, there is a part of the code that serves to check the entered command (the variable "cmdp" (for: Command Prompt). The program will verify if the variable "cmdp" contains any of the available commands.

        And what these few lines do is directly add code into the program's "cmd" window where the lines are added. To do this, I manipulate the variable "cmdp".

        There is no risk that this will have side effects because it acts like a standard command!

        I hope my explanations aren’t too complicated.

        If you have any other questions or requests, let me know, I will respond!

        Thank you, NSL-Develop.
        0