Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to enlarge the window "code included"  (Read 5078 times)

0 Members and 1 Guest are viewing this topic.

mecivic

    Topic Starter


    Greenhorn

    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 7
    How to enlarge the window "code included"
    « on: July 08, 2011, 11:32:00 AM »

    I have been messing around with the code bellow.
    How can you enlarge the window wihout draging with the mouse.

    I would like to set the size of the window within the code.

    How do i do it.



    @echo off
    @color 0a
    title Buddy Box
    :a
    cls
    echo =========================
    echo  Windows 7 64bit BuddyBox
    echo =========================
    echo.
    echo 1) Mozilla Firefox
    echo 2) Internet Explorer
    echo 3) Windows Media Player
    echo 4) Notepad
    echo 5) Regedit
    echo 6) Calculator
    echo 7) Wordpad
    echo 8) Command Prompt
    echo 9) Charactor Map
    echo 10) On-Screen Keyboard
    echo 11) Disk Cleanup
    echo 12) Command Prompt
    echo 13) Computer Management
    echo 14) Control Panel
    echo 15) Component Services
    echo 16) Disk Defragmenter
    echo 17) DirectX Diagnostic Tool
    echo 18) Privatee Character Editor
    echo 19) Event Viewer
    echo 20) Volume Mixer
    echo 21) Snipping Tool
    echo 22) Sound Recorder
    echo 23) Sticky Notes
    echo 24) Create Restore Point
    echo 25) Windows Task Manager
    echo 26) User Account Control Settings






    echo.
    set /p op=Choose which application to open:
    if %op%==1 goto 1
    if %op%==2 goto 2
    if %op%==3 goto 310

    if %op%==4 goto 4
    if %op%==5 goto 5
    if %op%==6 goto 6
    if %op%==7 goto 7
    if %op%==8 goto 8
    if %op%==9 goto 9
    if %op%==10 goto 10
    if %op%==11 goto 11
    if %op%==12 goto 12
    if %op%==13 goto 13
    if %op%==14 goto 14
    if %op%==15 goto 15
    if %op%==16 goto 16
    if %op%==17 goto 17
    if %op%==18 goto 18
    if %op%==19 goto 19
    if %op%==20 goto 20
    if %op%==21 goto 21
    if %op%==22 goto 22
    if %op%==23 goto 23
    if %op%==24 goto 24
    if %op%==25 goto 25
    if %op%==26 goto 26




    :1
    start firefox.exe
    goto a
    :2
    start iexplore.exe
    goto a
    :3
    start wmplayer.exe
    goto a
    :4
    start notepad.exe
    goto a
    :5
    start regedit.exe
    goto a
    :6
    start calc.exe
    goto a
    :7
    start Wordpad.exe
    goto a
    :8
    start cmd.exe
    goto a
    :9
    start charmap.exe
    goto a
    :10
    start osk.exe
    goto a
    :11
    start cleanmgr.exe
    goto a
    :12
    start cmd.exe
    goto a
    :13
    start CompMgmtLauncher.exe
    goto a
    :14
    start control.exe
    goto a
    :15
    start dcomcnfg.exe
    goto a
    :16
    start dfrgui.exe
    goto a
    :17
    start dxdiag.exe
    goto a
    :18
    start eudcedit.exe
    goto a
    :19
    start eventvwr.exe
    goto a
    :20
    start SndVol.exe
    goto a
    :21
    start SnippingTool.exe
    goto a
    :22
    start SoundRecorder.exe
    goto a
    :23
    start StikyNot.exe
    goto a
    :24
    start SystemPropertiesProtection.exe
    goto a
    :25
    start taskmgr.exe
    goto a
    :26
    start UserAccountControlSettings.exe

    goto a

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: How to enlarge the window "code included"
    « Reply #1 on: July 08, 2011, 12:22:34 PM »
    Use the mode command after the @echo off statement:

    MODE CON[:] [COLS=c] [LINES=n]

    Good luck.  8)

    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    mecivic

      Topic Starter


      Greenhorn

      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 7
      Re: How to enlarge the window "code included"
      « Reply #2 on: July 08, 2011, 12:35:59 PM »
      This is what i used.

      MODE CON:cols=50 lines=32

      Thank you
      Much appreciated


      TheShadow



        Hopeful

      • Retiree in Florida
      • Thanked: 13
        • Yes
        • The Doctor
      • Certifications: List
      • Computer: Specs
      • Experience: Guru
      • OS: Windows XP
      Re: How to enlarge the window "code included"
      « Reply #3 on: July 09, 2011, 09:15:20 AM »
      Ya know?..... I had never done that before, but I just tried it and it works great, but.....
      I had to use much higher numbers, due to the resolution of my screen.  150 and 65 worked great for me.

      Thanks for that helpful tip.  This day has not been wasted!  Now I'm going to the movies. ;D

       8)
      Experience is truly the best teacher.
      Backup! Backup! Backup!  Ghost Rocks!

      pathe3



        Greenhorn

        • Experience: Beginner
        • OS: Unknown
        Re: How to enlarge the window "code included"
        « Reply #4 on: July 09, 2011, 11:00:25 PM »
        Nice tip.

        thanx