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

Author Topic: change size of Notepad window  (Read 20447 times)

0 Members and 1 Guest are viewing this topic.

Yogesh123

    Topic Starter


    Beginner

    change size of Notepad window
    « on: June 25, 2010, 06:55:30 AM »
    I am opening a notepad file from my batch file program,
    but it opens in the full screen/in random size mode,
    How do i set the notepad file to open in the required size only,

    ----
    start c:\program_results.txt
    ----

    Thanks in advance!!

    marvinengland



      Hopeful

      Thanked: 11
      Re: change size of Notepad window
      « Reply #1 on: June 25, 2010, 07:12:15 AM »
      I am opening a notepad file from my batch file program,
      but it opens in the full screen/in random size mode,
      How do i set the notepad file to open in the required size only,


      Open only the notepad  window, right click on open spot of the taskbar and choose "Tile Windows Vertically" ( Make sure only one window is open when you do the above.)

      Windows will remember the window size your prefer for notepad.

      USA

      Yogesh123

        Topic Starter


        Beginner

        Re: change size of Notepad window
        « Reply #2 on: June 25, 2010, 07:20:42 AM »
        Dear marvinengland,
        the question is,
        How do i restrict the size or set to the required size only?

        marvinengland



          Hopeful

          Thanked: 11
          Re: change size of Notepad window
          « Reply #3 on: June 28, 2010, 05:59:58 PM »
          Dear marvinengland,
          the question is,
          How do i restrict the size or set to the required size only?


          Control the Window   
           
          --------------------------------------------------------------------------------
           
           <<<"You can control the location and size of a window with  the Title bar buttons,  (Win98, WinXP) or  (Vista) and by  dragging with your mouse. The shape of the mouse pointer tells you what action will take place when you drag. We have already used the  Vertical Resize on the taskbar. Here is a list to remind you of the possible shapes when resizing or moving.">>>

           http://www.jegsworks.com/Lessons/win/basics/step-controlwindow.htm



          USA

          Yogesh123

            Topic Starter


            Beginner

            Re: change size of Notepad window
            « Reply #4 on: June 28, 2010, 11:39:21 PM »
            how to control this notepad window size using batch scripting,
            Using command line

            Salmon Trout

            • Guest
            Re: change size of Notepad window
            « Reply #5 on: June 29, 2010, 12:22:50 AM »
            Set size and position with mouse, close Notepad.

            Open Notepad

            It remembers size and position

            Yogesh123

              Topic Starter


              Beginner

              Re: change size of Notepad window
              « Reply #6 on: June 29, 2010, 12:43:02 AM »
              Dear Salmon Trout,
              How to set the notepad window to the required size using command line/ batch scripting,

              like setting the command prompt window using,
              mode con lines=1
              mode con cols=56

              Salmon Trout

              • Guest
              Re: change size of Notepad window
              « Reply #7 on: June 29, 2010, 06:01:22 AM »
              Google for cmdow.exe

              dnthns87



                Rookie

                Thanked: 2
                Re: change size of Notepad window
                « Reply #8 on: June 29, 2010, 07:31:08 AM »
                with start you can include mode so you can do just this, you shouldnt have to google a third party prog , I'm Unsure of the proper syntax but you can experiment with mode try typing mode 120,30

                Salmon Trout

                • Guest
                Re: change size of Notepad window
                « Reply #9 on: June 29, 2010, 10:43:30 AM »
                with start you can include mode so you can do just this, you shouldnt have to google a third party prog , I'm Unsure of the proper syntax but you can experiment with mode try typing mode 120,30

                Mode can set the size of a command window, but how does that help you set the size of a Notepad window?

                Quote
                I'm Unsure of the proper syntax

                Maybe you should have waited until you were sure?



                Yogesh123

                  Topic Starter


                  Beginner

                  Re: change size of Notepad window
                  « Reply #10 on: July 02, 2010, 01:31:18 AM »
                  yes,
                  I checked it,
                  MODE doesn't work to set notepad window size,

                  any other alternate pls...

                  marvinengland



                    Hopeful

                    Thanked: 11
                    Re: change size of Notepad window
                    « Reply #11 on: July 02, 2010, 06:49:17 AM »
                    yes,
                    I checked it,
                    MODE doesn't work to set notepad window size,

                    any other alternate pls...

                    Why does it matter?

                    You have been given several solutions.


                    Click the middle icon at the top right to control window size. One click and the size is changed.  Drag the the top left corner of the window to the size you need.

                    All  the suggestions given in this thread solve the window size problem.

                    Again, why does it matter?
                    USA

                    BC_Programmer


                      Mastermind
                    • Typing is no substitute for thinking.
                    • Thanked: 1140
                      • Yes
                      • Yes
                      • BC-Programming.com
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Beginner
                    • OS: Windows 11
                    Re: change size of Notepad window
                    « Reply #12 on: July 02, 2010, 10:26:45 AM »
                    Again, why does it matter?

                    He wants to set the size directly from the batch file when notepad starts.

                    I was trying to dereference Null Pointers before it was cool.

                    marvinengland



                      Hopeful

                      Thanked: 11
                      Re: change size of Notepad window
                      « Reply #13 on: July 02, 2010, 11:26:56 AM »
                      "He wants to set the size directly from the batch file when notepad starts."

                      So, how does Yogesh123  set the notepad window size from a batch file?
                      USA

                      BC_Programmer


                        Mastermind
                      • Typing is no substitute for thinking.
                      • Thanked: 1140
                        • Yes
                        • Yes
                        • BC-Programming.com
                      • Certifications: List
                      • Computer: Specs
                      • Experience: Beginner
                      • OS: Windows 11
                      Re: change size of Notepad window
                      « Reply #14 on: July 02, 2010, 11:28:41 AM »
                      So, how does Yogesh123  set the notepad window size from a batch file?

                      Google for cmdow.exe

                      I was trying to dereference Null Pointers before it was cool.

                      Salmon Trout

                      • Guest
                      Re: change size of Notepad window
                      « Reply #15 on: July 02, 2010, 12:34:49 PM »
                      marvin, can you actually read?

                      Code: [Select]
                      cmdow "Untitled - Notepad" /SIZ 600 800 /MOV 10 10

                      Code: [Select]
                      C:\>cmdow /find "Notepad"

                      0x090420 1 2004 Res Ina Ena Vis notepad  Untitled - Notepad

                      C:\>cmdow 0x090420 /SIZ 600 800 /MOV 100 10


                      marvinengland



                        Hopeful

                        Thanked: 11
                        Re: change size of Notepad window
                        « Reply #16 on: July 02, 2010, 02:48:47 PM »
                        Yogesh123,

                        Cmdow did not* work for  Yogesh123, the man with the question.
                         
                        I have not tested cmdow.

                        Resizing a window is minor task and not worth the effort of using
                        Cmdow. Cmdow is a third party piece of software with questionable validity
                        or use.

                        p.s  cmdow is from Commandline.co.uk. Uk?  BP is from UK and look what BP did
                        to the Gulf. 

                        *  Yogesh123  wrote:
                        "I checked  cmdow
                        MODE doesn't work to set notepad window size,

                        any other alternate ideas from UK?"
                        « Last Edit: July 02, 2010, 03:03:46 PM by marvinengland »
                        USA

                        Salmon Trout

                        • Guest
                        Re: change size of Notepad window
                        « Reply #17 on: July 02, 2010, 04:33:28 PM »
                        Cmdow did not* work for  Yogesh123, the man with the question.

                        He has not, so far as I can see, tried it, so how do you know?

                        Quote
                        Cmdow is a third party piece of software with questionable validity or use.

                        You are a pathetic fool who posts nonsense, and worse...

                        Quote
                        p.s  cmdow is from Commandline.co.uk. Uk?  BP is from UK and look what BP did
                        to the Gulf.

                        You utter, utter imbecile.

                        1. I am from the UK too. I don't like your racism. If you don't mind me saying so, you are a dickhead.

                        2. BP ownership is 40% British, 39% US, 10% Europe, 7%, rest of world, 4% miscellaneous.

                        3. James Earl Ray, The KKK, Timothy McVeigh, and Jeffrey Dahmer are from the USA. Look what they did.

                        Amoco is from the USA. Look what they did to Alaska.

                        Quote
                        *  Yogesh123  wrote:
                        "I checked  cmdow

                        marvin, you just plain made this up. he wrote,

                        Quote from: Yogesh123
                        I checked it,
                        MODE doesn't work to set notepad window size,

                        "it" - (i.e. mode). marvin now turns to fabricating "quotes" to support his lies.

                        marvin is clearly mentally ill, and clearly full of malice, and now he is an exposed and proved liar, forger of quotes, xenophobic loony and cheat.

                        He needs to be banned.

                        Allan

                        • Moderator

                        • Mastermind
                        • Thanked: 1260
                        • Experience: Guru
                        • OS: Windows 10
                        Re: change size of Notepad window
                        « Reply #18 on: July 02, 2010, 04:46:22 PM »
                        Thread Locked.