fullscreen batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
princesstwi
Posts: 26
Joined: 03 Dec 2013 12:34

fullscreen batch

#1 Post by princesstwi » 12 Dec 2013 08:45

i am making a prank and i need to make my code make the screen go fullscreen is it possible and if so can you post the code to do so

Aacini
Expert
Posts: 1930
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: fullscreen batch

#2 Post by Aacini » 12 Dec 2013 10:37

You can not do that with pure Batch commands, you need a third party program (perhaps AutoIt can do it). My WINDOW.EXE auxiliary program can do that this way:

Code: Select all

Window GSize MAX

Antonio

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: fullscreen batch

#3 Post by Ed Dyreen » 12 Dec 2013 13:02

cmdow is smaller and faster than an AutoIt executable.

Code: Select all

cmdow.EXE @ /FS

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: fullscreen batch

#4 Post by foxidrive » 12 Dec 2013 17:43

Do you want to make a Windows GUI window full screen or a CMD prompt full screen?

After Windows XP the CMD prompt no longer goes full screen.

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#5 Post by einstein1969 » 13 Dec 2013 06:39

Ed Dyreen wrote:cmdow is smaller and faster than an AutoIt executable.

Code: Select all

cmdow.EXE @ /FS


This not work on windows 7 32bit.

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#6 Post by einstein1969 » 13 Dec 2013 06:40

Aacini wrote:You can not do that with pure Batch commands, you need a third party program (perhaps AutoIt can do it). My WINDOW.EXE auxiliary program can do that this way:

Code: Select all

Window GSize MAX

Antonio


I can't try.

Work on windows 7 32bit?

Einstein1969

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#7 Post by einstein1969 » 13 Dec 2013 06:57

Can anyone tell if this method is a real fullscreen? I can not understand what he says ...

Or is it a simulation/Fake fullscreen?

Einstein1969

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: fullscreen batch

#8 Post by carlos » 13 Dec 2013 07:24

Until windows xp you can use fullscreen after it you only can simulate maximizing the window. If you like i can write a small exe utility with source that do it.

princesstwi
Posts: 26
Joined: 03 Dec 2013 12:34

Re: fullscreen batch

#9 Post by princesstwi » 13 Dec 2013 08:05

is it possible on a vista

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: fullscreen batch

#10 Post by foxidrive » 13 Dec 2013 08:22

No, not on Vista, Win 7 or Win 8 and related distros.

XP was the last OS that CMD went into a full screen mode.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: fullscreen batch

#11 Post by Ed Dyreen » 13 Dec 2013 11:50

einstein1969 wrote:
Ed Dyreen wrote:cmdow is smaller and faster than an AutoIt executable.

Code: Select all

cmdow.EXE @ /FS


This not work on windows 7 32bit.
My mistake sorry, ( didn't use my glass ball ) :oops:

Aacini
Expert
Posts: 1930
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: fullscreen batch

#12 Post by Aacini » 13 Dec 2013 20:24

This topic is interesting to me, because I wrote many old DOS programs that I would want run, or test at least, in full screen mode in my Windows 8 computer. However, the answer is useful for anyone that use the Command Prompt window. I spent several hours searching the web looking for a definite answer to this question, and I think I found it (in part, at least). This theme encomprises three different points:

A: How maximize the Command Prompt window to the entire screen?

Of course, you may do that via right-click on the Command Prompt title bar, choose Properties and adjust "Layout: Width/Height" until you get the desired result; however, this process is cumbersome and time-consuming. A simpler method to achieve the same result is this:

  1. Open a Command Prompt window and enter: WMIC
  2. At the "wmic:root\cli>" prompt, click on the normal maximize button at top right. The Command Prompt window will fill the screen (thanks WMIC!).
  3. Enter EXIT to exit WMIC.
  4. Right-click the Command Prompt's title bar, choose Properties, click OK.
  5. Enter EXIT to exit Command Prompt.

After that, new Command Prompt window sessions will open with this size; however, I suggest you to also complete these steps:

  1. Open the Command Prompt window.
  2. Right-click the title bar, choose Properties and select a more standard size; for example: Layout: Window Width=80 Height=25, click OK.
  3. Enter EXIT.

This way, the Command Prompt window will open with the standard size, but when you click the maximize button it will fill the screen!

B. How set the Command Prompt window to full screen mode?

That is, as pressing Alt+Enter in Windows XP, with no window border. The answer is: DISSABLE YOUR GRAPHICS DRIVER. The procedure to do that in Windows 7 is described at this post. I tried to do that in my Windows 8 computer; however, although I successfully disabled the graphics driver, the Command Prompt window still does not activate the full screen mode with Alt+Enter. It seems that we need more info about this point for Windows 8.

C. How develop a program that activate full screen mode in Windows Vista/7/8?

As far as I know, there is no way to do that. I still must review the window-management related Win-32 API functions searching for a way to eliminate the window frame, but I think I will not found it. Perhaps someone with a wider knowledge on this topic could give us an answer (carlos?).

This way, it seems that the video about this point posted by einstein1969 is fake...

Antonio

ShadowThief
Expert
Posts: 1167
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: fullscreen batch

#13 Post by ShadowThief » 13 Dec 2013 20:45

The video is tricky. It looks like he somehow attached the command prompt to a C++ program, which in turn is then maximized. You can see the source code from about 1:09 to 1:20.

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#14 Post by einstein1969 » 14 Dec 2013 05:37

Aacini wrote:This topic is interesting to me, because I wrote many old DOS programs that I would want run, or test at least, in full screen mode in my Windows 8 computer. However, the answer is useful for anyone that use the Command Prompt window. I spent several hours searching the web looking for a definite answer to this question, and I think I found it (in part, at least). This theme encomprises three different points:

A: How maximize the Command Prompt window to the entire screen?

Of course, you may do that via right-click on the Command Prompt title bar, choose Properties and adjust "Layout: Width/Height" until you get the desired result; however, this process is cumbersome and time-consuming. A simpler method to achieve the same result is this:

  1. Open a Command Prompt window and enter: WMIC
  2. At the "wmic:root\cli>" prompt, click on the normal maximize button at top right. The Command Prompt window will fill the screen (thanks WMIC!).
  3. Enter EXIT to exit WMIC.
  4. Right-click the Command Prompt's title bar, choose Properties, click OK.
  5. Enter EXIT to exit Command Prompt.

After that, new Command Prompt window sessions will open with this size; however, I suggest you to also complete these steps:

  1. Open the Command Prompt window.
  2. Right-click the title bar, choose Properties and select a more standard size; for example: Layout: Window Width=80 Height=25, click OK.
  3. Enter EXIT.

This way, the Command Prompt window will open with the standard size, but when you click the maximize button it will fill the screen!

B. How set the Command Prompt window to full screen mode?

That is, as pressing Alt+Enter in Windows XP, with no window border. The answer is: DISSABLE YOUR GRAPHICS DRIVER. The procedure to do that in Windows 7 is described at this post. I tried to do that in my Windows 8 computer; however, although I successfully disabled the graphics driver, the Command Prompt window still does not activate the full screen mode with Alt+Enter. It seems that we need more info about this point for Windows 8.

C. How develop a program that activate full screen mode in Windows Vista/7/8?

As far as I know, there is no way to do that. I still must review the window-management related Win-32 API functions searching for a way to eliminate the window frame, but I think I will not found it. Perhaps someone with a wider knowledge on this topic could give us an answer (carlos?).

This way, it seems that the video about this point posted by einstein1969 is fake...

Antonio


I have tried metod B and work on seven 32bit. The cmd started after disabled the graphic device go in Fullscreen.

There is a method for disable/enable a device (the graphics card) programmtically?

Einstein1969

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: fullscreen batch

#15 Post by foxidrive » 14 Dec 2013 06:08

Did you disable the graphic card in device manager? What happens? Does colour depth or resolution suffer?
Or just turn off graphic card acceleration?

Microsoft has a devcon.exe for download to control hardware from the command line.

Post Reply