Computer Hope

Microsoft => Microsoft DOS => Topic started by: Yogesh123 on June 25, 2010, 06:55:30 AM

Title: change size of Notepad window
Post by: Yogesh123 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!!
Title: Re: change size of Notepad window
Post by: marvinengland 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.

Title: Re: change size of Notepad window
Post by: Yogesh123 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?
Title: Re: change size of Notepad window
Post by: marvinengland 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



Title: Re: change size of Notepad window
Post by: Yogesh123 on June 28, 2010, 11:39:21 PM
how to control this notepad window size using batch scripting,
Using command line
Title: Re: change size of Notepad window
Post by: Salmon Trout on June 29, 2010, 12:22:50 AM
Set size and position with mouse, close Notepad.

Open Notepad

It remembers size and position
Title: Re: change size of Notepad window
Post by: Yogesh123 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
Title: Re: change size of Notepad window
Post by: Salmon Trout on June 29, 2010, 06:01:22 AM
Google for cmdow.exe
Title: Re: change size of Notepad window
Post by: dnthns87 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
Title: Re: change size of Notepad window
Post by: Salmon Trout 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?


Title: Re: change size of Notepad window
Post by: Yogesh123 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...
Title: Re: change size of Notepad window
Post by: marvinengland 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?
Title: Re: change size of Notepad window
Post by: BC_Programmer 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.

Title: Re: change size of Notepad window
Post by: marvinengland 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?
Title: Re: change size of Notepad window
Post by: BC_Programmer 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

Title: Re: change size of Notepad window
Post by: Salmon Trout 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

Title: Re: change size of Notepad window
Post by: marvinengland 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?"
Title: Re: change size of Notepad window
Post by: Salmon Trout 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.
Title: Re: change size of Notepad window
Post by: Allan on July 02, 2010, 04:46:22 PM
Thread Locked.